managed folder with multiple dataframes

Tags
Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 4 ✭✭✭

hello

i have a python recipe with multiple data frames as output i would like to know how to put all these output into one managed folder.

regards.

Answers

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,405 Neuron
    edited July 2024

    The following Python code in a Python recipe will output the contents of the df dataframe to a CSV file:

    import dataiku
    
    path_upload_file = "output.csv"
    handle = dataiku.Folder("Some Managed Folder")
    
    with handle.get_writer(path_upload_file) as w:
        w.write(df.to_csv().encode('utf-8'))

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,405 Neuron

    You can also use the Export to Folder visual recipe but that only allows to write back a single output at a time.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.