class documentation
class Dataset:
Constructors: Dataset.create_from(data), Dataset(name, project, account, is_private, ...)
Represents a dataset within a DataGraphs project.
| Static Method | create |
Create a Dataset instance from a dictionary. |
| Method | __eq__ |
Undocumented |
| Method | __init__ |
Create a new dataset. |
| Method | __ne__ |
Undocumented |
| Method | classes |
Undocumented |
| Method | is |
Undocumented |
| Method | is |
Undocumented |
| Method | to |
Convert the dataset to a dictionary suitable for API requests. |
| Property | account |
The account name. |
| Property | classes |
The class names belonging to this dataset. |
| Property | id |
The auto-generated URN identifier (e.g. 'urn:project:dataset-slug'). |
| Property | is |
Whether the dataset is private. |
| Property | is |
Whether the dataset has restricted access. |
| Property | name |
The dataset name. |
| Property | project |
The project name. |
| Property | slug |
The slug portion of the dataset ID. |
| Method | _sanitise |
Undocumented |
| Instance Variable | _account |
Undocumented |
| Instance Variable | _classes |
Undocumented |
| Instance Variable | _is |
Undocumented |
| Instance Variable | _is |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _project |
Undocumented |
def __init__(self, name:
str, project: str, account: str = '', is_private: bool = True, is_restricted: bool = False, classes: list[ str] | None = None):
¶
Create a new dataset.
| Parameters | |
name:str | Dataset name. |
project:str | Project name. |
account:str | Account name. |
isbool | Whether the dataset is private. |
isbool | Whether the dataset has restricted access. |
classes:list[ | List of class names belonging to this dataset. |