mstz commited on
Commit
752d675
·
1 Parent(s): 628e232

Update wine.py

Browse files
Files changed (1) hide show
  1. wine.py +1 -3
wine.py CHANGED
@@ -93,9 +93,7 @@ class Wine(datasets.GeneratorBasedBuilder):
93
  yield row_id, data_row
94
 
95
  def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
96
- print(data.head())
97
- data = data.rename(columns={"color": "is_red"})
98
- print(data.head())
99
  data.loc[data.is_red == "red", "color"] = 0
100
  data.loc[data.is_red == "white", "color"] = 1
101
 
 
93
  yield row_id, data_row
94
 
95
  def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
96
+ data = data.rename(columns={"color": "is_red"})
 
 
97
  data.loc[data.is_red == "red", "color"] = 0
98
  data.loc[data.is_red == "white", "color"] = 1
99