Skip to main content

pc.create_dataset_from_df

pc.create_dataset_from_df(df, name)

Create a Predibase Dataset from a Pandas DataFrame object.

Parameters:

   df: pd.DataFrame
DataFrame to create dataset from.

   name: str
Name of dataset to be created.

Returns:

   Dataset

Examples:

Create a dataset from a pandas DataFrame.

    df = pd.read_csv('{Path to File}/titanic.csv')
dataset = pc.create_dataset_from_df(df, "titanic_dataset")