Datasets:
Update blood.py
Browse files
blood.py
CHANGED
@@ -75,7 +75,6 @@ class Blood(datasets.GeneratorBasedBuilder):
|
|
75 |
def _generate_examples(self, filepath: str):
|
76 |
data = pandas.read_csv(filepath, header=None)
|
77 |
data.columns = _BASE_FEATURE_NAMES
|
78 |
-
print(data.dtypes)
|
79 |
data = data.astype({
|
80 |
"months_since_last_donation": "int64",
|
81 |
"total_donation": "int64",
|
@@ -83,7 +82,6 @@ class Blood(datasets.GeneratorBasedBuilder):
|
|
83 |
"months_since_last_donation": "int64",
|
84 |
"has_donated_last_month": "int64"
|
85 |
})
|
86 |
-
print("\n\n\n\n")
|
87 |
|
88 |
for row_id, row in data.iterrows():
|
89 |
data_row = dict(row)
|
|
|
75 |
def _generate_examples(self, filepath: str):
|
76 |
data = pandas.read_csv(filepath, header=None)
|
77 |
data.columns = _BASE_FEATURE_NAMES
|
|
|
78 |
data = data.astype({
|
79 |
"months_since_last_donation": "int64",
|
80 |
"total_donation": "int64",
|
|
|
82 |
"months_since_last_donation": "int64",
|
83 |
"has_donated_last_month": "int64"
|
84 |
})
|
|
|
85 |
|
86 |
for row_id, row in data.iterrows():
|
87 |
data_row = dict(row)
|