def from_csv(self, label_column='<STR_LIT>'):
df = pd.read_csv(self.path, header=<NUM_LIT:0>)<EOL>X = df.loc[:, df.columns != label_column].to_dict('<STR_LIT>')<EOL>X = map_dict_list(X, if_func=lambda k, v: v and math.isfinite(v))<EOL>y = list(df[label_column].values)<EOL>return X, y<EOL>
Read dataset from csv.