mstz commited on
Commit
a276e03
·
1 Parent(s): d98ff43

Upload heart.py

Browse files
Files changed (1) hide show
  1. heart.py +2 -4
heart.py CHANGED
@@ -153,10 +153,8 @@ class Heart(datasets.GeneratorBasedBuilder):
153
 
154
  data = data.astype({"is_male": bool, "has_exercise_induced_angina": bool})
155
 
156
- print(data.dtypes)
157
- print(data.head())
158
- print(data.number_of_major_vessels_colored_by_flourosopy.unique())
159
- print(data.thal.unique())
160
 
161
  for row_id, row in data.iterrows():
162
  data_row = dict(row)
 
153
 
154
  data = data.astype({"is_male": bool, "has_exercise_induced_angina": bool})
155
 
156
+ data = data[data.thal != "?"]
157
+ data = data[data.number_of_major_vessels_colored_by_flourosopy != "?"]
 
 
158
 
159
  for row_id, row in data.iterrows():
160
  data_row = dict(row)