Datasets:
Update golf.py
Browse files
golf.py
CHANGED
|
@@ -76,8 +76,6 @@ class Golf(datasets.GeneratorBasedBuilder):
|
|
| 76 |
yield row_id, data_row
|
| 77 |
|
| 78 |
def preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame:
|
| 79 |
-
print(data.dtypes)
|
| 80 |
-
print(data.windy.unique())
|
| 81 |
for feature in _ENCODING_DICS:
|
| 82 |
encoding_function = partial(self.encode, feature)
|
| 83 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
|
|
|
| 76 |
yield row_id, data_row
|
| 77 |
|
| 78 |
def preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame:
|
|
|
|
|
|
|
| 79 |
for feature in _ENCODING_DICS:
|
| 80 |
encoding_function = partial(self.encode, feature)
|
| 81 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|