75a850f38cceab2d05ef975677c3feefd7a83a69,odps/df/backends/utils.py,,_convert_pd_type,#Any#Any#,128

Before Change



    retvals = []
    for val, t in compat.izip(values, table.schema.types):
        if pd.isnull(val):
            retvals.append(None)
        else:
            retvals.append(val)

After Change



    retvals = []
    for val, t in compat.izip(values, table.schema.types):
        isnull = pd.isnull(val)
        if isinstance(isnull, bool) and isnull:
            retvals.append(None)
        else:
            retvals.append(val)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: aliyun/aliyun-odps-python-sdk
Commit Name: 75a850f38cceab2d05ef975677c3feefd7a83a69
Time: 2018-04-25
Author: wenjun.swj@alibaba-inc.com
File Name: odps/df/backends/utils.py
Class Name:
Method Name: _convert_pd_type


Project Name: has2k1/plotnine
Commit Name: 1a3d653ef9269af2eb6216e09e777bc2988a4730
Time: 2020-02-04
Author: finkernagel@imt.uni-marburg.de
File Name: plotnine/scales/scale.py
Class Name: scale_discrete
Method Name: map


Project Name: AxeldeRomblay/MLBox
Commit Name: bdebda883a2723fc8f1727aca2ad6af352e41e0d
Time: 2017-08-01
Author: maskani.mohamed@gmail.com
File Name: python-package/mlbox/preprocessing/reader.py
Class Name: Reader
Method Name: train_test_split