Announcing the winners & finalists of the Dataiku Frontrunner Awards 2021! Read their inspiring stories

Jupyter Notebook: Difference between dataiku.Dataset("XX") and get_dataset("XX")

Solved!
Thomas_K
Level 3
Jupyter Notebook: Difference between dataiku.Dataset("XX") and get_dataset("XX")

I have this code:



    ds1 = dataiku.Dataset("T73RM067")

    ds2 = dataiku.api_client().get_project("AIIMEINKAUF").get_dataset("T73RM067")



    print(type(ds1))

    print(type(ds2))



Which returns




<type 'instance'>



<class 'dataikuapi.dss.project.DSSProject'>


How do these differ? Is there any documentation about what I can do with those? If I change anything in them, will the changes be reflected onto the original dataset?

0 Kudos
1 Solution
Clément_Stenac
Dataiker
Dataiker
The first variant only works within DSS and gives you a class of the Python internal API:
https://doc.dataiku.com/dss/latest/api/python/datasets.html#api-reference-the-dataset-class



The second variant can also be used outside of DSS, has much less features for reading and writing data, but is more geared towards interaction with settings, and is documented here:
https://doc.dataiku.com/dss/latest/api/public/client-python/reference.html#dataikuapi.dss.dataset.DSSDataset

View solution in original post

1 Reply
Clément_Stenac
Dataiker
Dataiker
The first variant only works within DSS and gives you a class of the Python internal API:
https://doc.dataiku.com/dss/latest/api/python/datasets.html#api-reference-the-dataset-class



The second variant can also be used outside of DSS, has much less features for reading and writing data, but is more geared towards interaction with settings, and is documented here:
https://doc.dataiku.com/dss/latest/api/public/client-python/reference.html#dataikuapi.dss.dataset.DSSDataset

View solution in original post

Labels (4)
A banner prompting to get Dataiku DSS