e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f,cesium/featurize.py,,load_featureset,#,367

Before Change


    channels = [int(c) if c != "" else "" for c in data.pop("channels")]
    columns = pd.MultiIndex.from_tuples(list(zip(features, channels)),
                                        names=["feature", "channel"])
    fset = pd.DataFrame(data.pop("values"), index=data.pop("index"),
                        columns=columns)
    return fset, data

After Change


                                             names=["feature", "channel"])

    for k, v in data.items():
        if len(v.dtype) > 0:
            data[k] = pd.DataFrame.from_records(v, index="index")

    return fset, data
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: load_featureset


Project Name: ina-foss/inaSpeechSegmenter
Commit Name: 4396573e860d553825702006aa335989356b45c8
Time: 2020-05-10
Author: ddoukhan@ina.fr
File Name: inaSpeechSegmenter/segmenter.py
Class Name:
Method Name: featGenerator


Project Name: miso-belica/sumy
Commit Name: c16886fefa4cca5f7b45e52ff2fcb1b89876c70a
Time: 2013-03-05
Author: miso.belica@gmail.com
File Name: sumy/algorithms/luhn.py
Class Name: LuhnMethod
Method Name: __remove_trailing_zeros