twinlab.load_dataset#

twinlab.load_dataset(filepath, verbose=False)[source]#

Load a dataset from a local file in .csv format into a pandas dataframe.

Parameters:
  • filepath (str) – Path to the dataset file, which should be in csv format.

  • verbose (bool, optional) – Display information while running.

Returns:

The dataset loaded from the file.

Return type:

pd.DataFrame

Example

df = tl.load_dataset("path/to/data.csv", verbose=True)
Dataset loaded:
     x         y
0  0.0  1.097485
1  1.0  0.835439
2  2.0  0.655124