Write the schema of a pandas dataframe using the "dataikuapi" variant

rafael_rosado97
rafael_rosado97 Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 62 Partner

Hello, Dataiku team.

How can I write the schema of a pandas dataframe using the "dataikuapi" variant?
I'm doing it this way because I want to send information from the api node to a table in my project in the layout node.
I want to write the schema like when using the dataiku library: df_final.write_with_schema(df). But, it can't be done this way using dataikuapi.

Thank you very much

Operating system used: Linux

Operating system used: Linux

Best Answer

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
    Answer ✓

    You can't. But you can use the dataiku package in the API node. You can install it like this:

    pip install https://dss.example/public/packages/dataiku-internal-client.tar.gz
    

    Then connect like this:

    import dataiku
    dataiku.set_remote_dss("https://dss.example", "YOURAPIKEY")
    

    And now you you can use dataiku.Dataset().

Setup Info
    Tags
      Help me…