mstz commited on
Commit
bab237a
·
1 Parent(s): 9a56632

Update liver.py

Browse files
Files changed (1) hide show
  1. liver.py +1 -0
liver.py CHANGED
@@ -74,6 +74,7 @@ class ILPD(datasets.GeneratorBasedBuilder):
74
  data = pandas.read_csv(filepath).infer_objects()
75
  data[["is_male"]].applymap(bool)
76
  data[["class"]].applymap(lambda x: x - 1)
 
77
  print(data.dtypes)
78
 
79
  for row_id, row in data.iterrows():
 
74
  data = pandas.read_csv(filepath).infer_objects()
75
  data[["is_male"]].applymap(bool)
76
  data[["class"]].applymap(lambda x: x - 1)
77
+ data = data.astype({"is_male": "bool"})
78
  print(data.dtypes)
79
 
80
  for row_id, row in data.iterrows():