f0a4b4d03fd700c96800dd1d68a2cc0dfc182f83,cheml/preprocessing/handle_missing.py,missing_values,transform,#missing_values#Any#,99

Before Change


            data.dropna(axis=1, how="any", inplace=True)
            return data
        elif self.strategy == "interpolate":
            data = data.interpolate()
            data.fillna(method="ffill",axis=1, inplace=True) // because of nan in the first and last element of column
            return data
        else:
            msg = "Wrong strategy has been passed"

After Change


        if self.strategy == "ignore_row":
            return df[self.mask]
        elif self.strategy == "ignore_column":
            return df.T[self.mask].T
        else:
            msg = "The transform method doesn"t change the dataframe if strategy="zero" or "interpolate". You should fit_transform your new dataframe with those methods."
            warnings.warn(msg)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hachmannlab/chemml
Commit Name: f0a4b4d03fd700c96800dd1d68a2cc0dfc182f83
Time: 2017-01-04
Author: mojtabah@buffalo.edu
File Name: cheml/preprocessing/handle_missing.py
Class Name: missing_values
Method Name: transform


Project Name: mittagessen/kraken
Commit Name: 521839eb8f9d81c55d9cdc851df8af65278c4f45
Time: 2019-10-15
Author: mittagessen@l.unchti.me
File Name: kraken/blla.py
Class Name:
Method Name: segment


Project Name: osmr/imgclsmob
Commit Name: ed1323aa16f4a5a1b17d32080ae40e1103ec6cca
Time: 2019-04-02
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/deeplabv3.py
Class Name: DeepLabv3
Method Name: forward