e2ab4ccd6cb5e306c66182ac8ff1ad2d8183df1c,cnvlib/gary.py,GenomicArray,_make_blank,#Any#,56

Before Change


    @classmethod
    def _make_blank(cls):
        Create an empty dataframe with the columns required by this class.
        table = pd.DataFrame({key: [] for key in cls._required_columns})
        for col, dtype in zip(cls._required_columns, cls._required_dtypes):
            table[col] = table[col].astype(dtype)
        return table

After Change


    def _make_blank(cls):
        Create an empty dataframe with the columns required by this class.
        spec = list(zip(cls._required_columns, cls._required_dtypes))
        try:
            arr = np.zeros(0, dtype=spec)
            return pd.DataFrame(arr)
        except TypeError as exc:
            logging.info("%s", locals())
            raise

    @classmethod
    def from_columns(cls, columns, meta_dict=None):
        Create a new instance from column arrays, given as a dict.
        table = pd.DataFrame.from_dict(columns)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: etal/cnvkit
Commit Name: e2ab4ccd6cb5e306c66182ac8ff1ad2d8183df1c
Time: 2016-10-07
Author: eric.talevich@gmail.com
File Name: cnvlib/gary.py
Class Name: GenomicArray
Method Name: _make_blank


Project Name: pymc-devs/pymc3
Commit Name: 8e9d33e12259fee615e8dcd92c16496037f1c195
Time: 2016-09-10
Author: ColCarroll@users.noreply.github.com
File Name: pymc3/sampling.py
Class Name:
Method Name: assign_step_methods


Project Name: tensorflow/transform
Commit Name: 707061dd0a0ba414abf92c0c1fb1641b25b06e71
Time: 2017-09-29
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/saved/input_fn_maker.py
Class Name:
Method Name: build_transforming_training_input_fn


Project Name: prody/ProDy
Commit Name: 3feed06829dbf98f9eb92c753da5d659457cf77a
Time: 2012-12-11
Author: lordnapi@gmail.com
File Name: lib/prody/sequence/msa.py
Class Name: MSA
Method Name: __init__