0 votes
Hello,

I am creating an editable dataset in order to be used by a webappli.

I want to be able to modify the  values of this dataset .

Can you confirm me the correct way to do ti?

Thank you
asked by
Here is the examlpe code i use

   d = {'COL1': [100], 'COL2': [2],'COL_3':[3]}
    df = pd.DataFrame(data=d)
    # load the input dataset
   
    dfout = dataiku.Dataset("output")
    dfout.write_from_dataframe(df)

1 Answer

0 votes
Hi,

You can write to any kind of datasets using the Dataiku API: https://doc.dataiku.com/dss/latest/api/python/datasets.html. This API contains several methods for writing to datasets.

So the example code you posted is the right way :)

Just a comment on the approach: if you use a dataset as a "backend" element of a webapp, this dataset will be shared among all the web app users. So it could lead to edit conflicts if you have multiple concurrent users. Would that be the case for you?

Cheers,

Alex
answered by
944 questions
978 answers
989 comments
2,153 users

┬ęDataiku 2012-2018 - Privacy Policy