Skip to main content

Connection.import_dataset

Connection.import_dataset(object_name, dataset_name)

Import a dataset from the connection object this method is called on.

Parameters:

   object_name: str
Object to import (S3 path, GCS path, Snowflake table name, etc.).

   dataset_name: str
Name for dataset in Predibase.

Returns:

   Dataset

Examples:

Get a connection by name.

    connection = pc.get_connection('S3 Connection')

Import a dataset from S3 connection.

    dataset = connection.import_dataset("s3://{Bucket Name}/{Path to Object}", "Titanic Dataset")