Datasets:
Update golf.py
Browse files75 unmodified lines767778798081828375 unmodified linesyield row_id, data_rowdef preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame:print(data.dtypes)print(data.windy.unique())for feature in _ENCODING_DICS:encoding_function = partial(self.encode, feature)data.loc[:, feature] = data[feature].apply(encoding_function)75 unmodified lines76777879808175 unmodified linesyield row_id, data_rowdef preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame:for feature in _ENCODING_DICS:encoding_function = partial(self.encode, feature)data.loc[:, feature] = data[feature].apply(encoding_function)
golf.py-2