f86781c68cac46a283555471b3d7ca32ca16ccdf,stellargraph/core/convert.py,ColumnarConverter,_convert_single,#ColumnarConverter#Any#Any#,82

Before Change


            for name, value in self.column_defaults.items()
            if name not in existing
        }
        known = known.assign(**defaults_required)

        // now verify that all of the columns needed are there (that is, the defaults have filled out appropriately)
        require_dataframe_has_columns(
            self.name(type_name), known, self.selected_columns
        )

        for column, transform in self.transform_columns.items():
            known[column] = transform(known[column])

        if self.allow_features:
            // to_numpy returns an unspecified order but it"s Fortran in practice. Row-level bulk
            // operations are more common (e.g. slicing out a couple of row, when sampling a few

After Change


        ids = data.index

        // split the dataframe based on the columns we know about
        missing_columns = []

        def select_column(old_name):
            if old_name in data.columns:
                column = data[old_name].to_numpy()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: stellargraph/stellargraph
Commit Name: f86781c68cac46a283555471b3d7ca32ca16ccdf
Time: 2020-05-11
Author: Huon.Wilson@data61.csiro.au
File Name: stellargraph/core/convert.py
Class Name: ColumnarConverter
Method Name: _convert_single


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 4113a6a3be19167a8c551f8ae20e849ac851e52c
Time: 2019-03-25
Author: zhongjy1992@outlook.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_day


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 5b4d04de17457286fe4e5f3e0e8295db42d0f064
Time: 2020-04-05
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_min