speedml icon indicating copy to clipboard operation
speedml copied to clipboard

Initialize Speedml with pandas dataframe rather than .csv

Open MLDERES opened this issue 7 years ago • 0 comments

Not all data comes in .csv or .json files. It would be fantastic and helpful to allow for initializing the process with a dataframe, matrix or series of data rather than requiring files. For instance,

import pandas as pd
from speedml import Speedml

df = pd.read_excel('../somefile')
sml = Speedml(data = df, target='column name')

MLDERES avatar Feb 05 '19 19:02 MLDERES