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
919 questions
956 answers
953 comments
1,777 users