e85cb30e6adb96462791fb07c084c87ac8f69c9f,pdpipe/col_generation.py,OneHotEncode,__init__,#OneHotEncode#Any#Any#Any#Any#Any#Any#,200
Before Change
if columns is None:
self._columns = None
else:
self._columns = _interpret_columns_param(columns)
self._dummy_na = dummy_na
if exclude_columns is None:
self._exclude_columns = []
else:
After Change
columns = OfDtypes(["object", "category"])
else:
columns = columns_to_qualifier(columns)
if exclude_columns:
exclude_columns = columns_to_qualifier(exclude_columns)
columns = columns - exclude_columns
self._dummy_na = dummy_na
self._col_subset = col_subset
self._drop_first = drop_first
self._drop = drop
self._dummy_col_map = {}
self._encoder_map = {}
super_kwargs = {
"columns": columns,
"desc_temp": "One-hot encode {}",
}
super_kwargs.update(**kwargs)
super().__init__(**super_kwargs)
def _prec(self, df):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: shaypal5/pdpipe
Commit Name: e85cb30e6adb96462791fb07c084c87ac8f69c9f
Time: 2020-02-09
Author: shaypal5@gmail.com
File Name: pdpipe/col_generation.py
Class Name: OneHotEncode
Method Name: __init__
Project Name: shaypal5/pdpipe
Commit Name: 99095d5412483ec623278bdb1a0c9e24b18bfc85
Time: 2017-03-16
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: Encode
Method Name: __init__
Project Name: shaypal5/pdpipe
Commit Name: 71a900bce8f2544ee8d560241349d43f5d29164f
Time: 2017-03-17
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: ColByFunc
Method Name: __init__