Create a dataset

Find out how to create a dataset using our Python SDK

To create a new dataset, simply enter your preferred dataset name in the following code snippet:

dataset = client.create_dataset("YOUR DATASET NAME")

You'll be able to refresh the Datasets page in V7, and see if your new dataset has been created.


If the dataset you're trying to create has the same name as an existing dataset in V7, you can import images, video etc.. to that dataset instead by entering the script below:

dataset_slug = "your-dataset-name"
dataset_identifier = f"{client.default_team}/{dataset_slug}"

    dataset = client.create_dataset(dataset_name)
except darwin.exceptions.NameTaken:
    dataset = client.get_remote_dataset(dataset_identifier)```