Dataset.create

Dataset.create(*, public_access_level="none", description=None) → self

Creates a new dataset. New datasets only have an unreleased "next" version, and are only visible to dataset editors until they are released.

Parameters:

public_access_level : str {"none" | "overview" | "metadata" | "sample" | "data"}, default "none" Sets the initial public access level of the dataset (the level of access for any user on Redivis), defaulting to the string "none". However, the dataset will only be visible to dataset editors before it is released. Additional access rules for datasets can be defined through the web interface.

description : str, default None The dataset's description, presented as the "Abstract" in the web interface.

Returns:

self (a Dataset)

Examples:

dataset = redivis.user("my_username").dataset("My dataset")
dataset.create(description="This is a test dataset")

upload = dataset.table("My table").upload("data.csv")

with open("data.csv", "rb") as file:
    upload.upload_file(file)
    
dataset.release()

Last updated