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
863 questions
891 answers
848 comments
1,172 users