0 votes
I need to write a pandas dataframe to dataiku output, with the index values. However the write_with_schema doesn't write out the index values
asked by

1 Answer

0 votes
Hi,

Before using the `write_with_schema` method, you can put
df["index_col"] = df.index

Then your pandas data frame will have an actual "index_col" column written.

Cheers,

Alex
answered by
965 questions
995 answers
1,044 comments
2,345 users

┬ęDataiku 2012-2018 - Privacy Policy