Skip to main content

Dataset.to_dataframe

Dataset.to_dataframe(limit=100000)

This method converts a Predibase dataset to a pandas.DataFrame. By default it is limited to
100,000 rows to prevent crashing due to OOM, however, the user can increase the limit if desired.

Parameters:

   limit: Optional[int]
Size of the DataFrame to return.

Returns:

   pd.DataFrame

Examples:

Get a pandas.DataFrame from a Predibase Dataset.

        dataset = pc.get_dataset('titanic_dataset')
dataset.to_dataframe()