Read Dataset Schema Description

rmoore
Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Participant, Neuron 2023 Posts: 33 Neuron
I'm wondering what method should be used to read a Dataset's schema "Description" (shown in the screenshot below) that can be set in the UI with the Python API.
Thanks!
Best Answer
-
Hi,
The description can be read through the Dataset.read_schema() method.
While the default representation of the schema in a schema does not show the notebook, underlying it is a regular Python list, so you can access it from the "comment" field of each column: