pb.datasets.from_file
pb.datasets.from_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 = pb.datasets.from_file("{Path to local file}", name="TLDR News Dataset")