sklearn_utils/utils/skutils_io.py
def from_csv(self, label_column='labels'):
        '''
        Read dataset from csv.
        '''
        df = pd.read_csv(self.path, header=0)
        X = df.loc[:, df.columns != label_column].to_dict('records')
        X = map_dict_list(X, if_func=lambda k, v: v and math.isfinite(v))
        y = list(df[label_column].values)
        return X, y
def from_csv(self, label_column='labels'):
        '''
        Read dataset from csv.
        '''
        df = pd.read_csv(self.path, header=0)
        X = df.loc[:, df.columns != label_column].to_dict('records')
        X = map_dict_list(X, if_func=lambda k, v: v and math.isfinite(v))
        y = list(df[label_column].values)
        return X, y
Read dataset from csv.