Skip to main content

pc.upload_file

pc.upload_file(file_path, name)

Upload a file from which a dataset will be created.

Parameters:

   file_path: str
Relative path of local file to upload.

   name: str
Name of dataset to create from uploaded file.

Returns:

   Dataset

Examples:

Create a dataset from a local file.

    dataset = pc.upload_file('{Path to local file}', 'Titanic Dataset')