Read Dataset Schema Description

Options
rmoore
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!

AB687697-8E37-4C2A-BE62-EDC4CAE414E2.jpg

Best Answer

  • Clément_Stenac
    Clément_Stenac Dataiker, Dataiku DSS Core Designer, Registered Posts: 753 Dataiker
    Answer ✓
    Options

    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:

    image.png

Setup Info
    Tags
      Help me…