Datasets:
Update isolet.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
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
|