Datasets:
Update isolet.py
Browse files
isolet.py
CHANGED
@@ -76,7 +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 |
-
data.
|
80 |
data = data.astype({"617": "int8"})
|
81 |
|
82 |
return data
|
|
|
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.loc[:, "617"] = data["617"].apply(int)
|
80 |
data = data.astype({"617": "int8"})
|
81 |
|
82 |
return data
|