Datasets:
Update blood.py
Browse files
blood.py
CHANGED
@@ -75,7 +75,7 @@ class Blood(datasets.GeneratorBasedBuilder):
|
|
75 |
data = pandas.read_csv(filepath, header=None)
|
76 |
data.columns = _BASE_FEATURE_NAMES
|
77 |
|
78 |
-
|
79 |
|
80 |
data = data.astype({
|
81 |
"months_since_last_donation": "int64",
|
|
|
75 |
data = pandas.read_csv(filepath, header=None)
|
76 |
data.columns = _BASE_FEATURE_NAMES
|
77 |
|
78 |
+
data["months_since_last_donation"] = data["months_since_last_donation"].apply(lambda x: x.values[0] if isinstance(x, pandas.Series) else x)
|
79 |
|
80 |
data = data.astype({
|
81 |
"months_since_last_donation": "int64",
|