mstz commited on
Commit
1a12629
1 Parent(s): 5021a7a

Update isolet.py

Browse files
Files changed (1) hide show
  1. isolet.py +4 -1
isolet.py CHANGED
@@ -76,4 +76,7 @@ class Isolet(datasets.GeneratorBasedBuilder):
76
 
77
  def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
78
  data.columns = [str(i) for i in range(618)]
79
- return data.astype({"617": "int"})
 
 
 
 
76
 
77
  def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
78
  data.columns = [str(i) for i in range(618)]
79
+ data.iloc[:, "618"] = data["618"].apply(int)
80
+ data = data.astype({"617": "int8"})
81
+
82
+ return data