Skip to main content

pc.list_datasets

pc.list_datasets(name=None, limit=inf, df=False)

Get a list of datasets available in your Predibase environment. Only displays
what the user has access to.

Parameters:

   name: str
Name of dataset to search on.

   limit: int, default inf
Max number of connections to return.

   df: boolean, default False
Whether to return a pandas dataframe or a list of objects.

Returns:

   pd.DataFrame

  OR

   List[Dataset]

Examples:

List all connections currently available to us.

    pc.list_connections()
# > [Connection,
# name: Postgres Connection,
# id: 0,
# connection_type: ConnectionType.POSTGRESQL,
# properties: None,
# Connection,
# name: S3 Connection,
# id: 1,
# connection_type: ConnectionType.S3,
# properties: None]

pc.list_datasets()
# > [Dataset(id=1234, name=Titanic Dataset, object_name=titanic, connection_id=0, author=jsmith, ...),
# Dataset(id=1235, name=Fraud Dataset, object_name=fraud, connection_id=1, author=jdoe, ...)]