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

Update liver.py

Browse files
Files changed (1) hide show
  1. liver.py +2 -1
liver.py CHANGED
@@ -71,9 +71,10 @@ class ILPD(datasets.GeneratorBasedBuilder):
71
  ]
72
 
73
  def _generate_examples(self, filepath: str):
74
- data = pandas.read_csv(filepath)
75
  data[["is_male"]].applymap(bool)
76
  data[["class"]].applymap(lambda x: x - 1)
 
77
 
78
  for row_id, row in data.iterrows():
79
  data_row = dict(row)
 
71
  ]
72
 
73
  def _generate_examples(self, filepath: str):
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():
80
  data_row = dict(row)