46aea54b80a6f7516447a84b3d66d9502fe3834a,pdpipe/basic_stages.py,ValKeep,__init__,#ValKeep#Any#Any#,141

Before Change


    def __init__(self, values, columns=None, **kwargs):
        self._values = values
        self._values_str = _list_str(self._values)
        self._columns_str = _list_str(columns)
        if columns is None:
            self._columns = None
            apply_msg = ValKeep._DEF_VALKEEP_APPLY_MSG.format(
                self._values_str)
        else:
            self._columns = _interpret_columns_param(columns)
            apply_msg = ValKeep._DEF_VALKEEP_APPLY_MSG.format(
                "{} in {}".format(
                    self._values_str, self._columns_str))
        super_kwargs = {
            "exmsg": ValKeep._DEF_VALKEEP_EXC_MSG.format(self._columns_str),
            "appmsg": apply_msg,
            "desc": self._default_desc()
        }
        super_kwargs.update(**kwargs)
        super().__init__(**super_kwargs)

    def _prec(self, df):

After Change


    def __init__(self, values, columns=None, **kwargs):
        self._values = values
        self._values_str = _list_str(self._values)
        super_kwargs = {
            "columns": columns,
            "desc_temp": "Keep values {} in columns {{}}".format(
                self._values_str),
        }
        super_kwargs.update(**kwargs)
        super_kwargs["none_columns"] = "all"
        super().__init__(**super_kwargs)

    def _transformation(self, df, verbose, fit):
        inter_df = df
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 19

Instances


Project Name: shaypal5/pdpipe
Commit Name: 46aea54b80a6f7516447a84b3d66d9502fe3834a
Time: 2020-02-09
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: ValKeep
Method Name: __init__


Project Name: shaypal5/pdpipe
Commit Name: a3e7204855a76e143a40073236c6254609f2303a
Time: 2020-02-05
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: ValDrop
Method Name: __init__


Project Name: shaypal5/pdpipe
Commit Name: da3630c4eccc04079e465256786f65d6d87e7b1f
Time: 2020-02-16
Author: shaypal5@gmail.com
File Name: pdpipe/col_generation.py
Class Name: Log
Method Name: __init__


Project Name: shaypal5/pdpipe
Commit Name: 46aea54b80a6f7516447a84b3d66d9502fe3834a
Time: 2020-02-09
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: ValKeep
Method Name: __init__