Read Dataset Schema Description

rmoore
rmoore 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 Posts: 754 Dataiker
    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:

    image.png

Setup Info
    Tags
      Help me…