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
972 questions
1,000 answers
1,047 comments
2,392 users

┬ęDataiku 2012-2018 - Privacy Policy