Skip to content

ks.concat indexing when ignore_index=True #2214

Answered by itholic
barashe asked this question in Q&A
Discussion options

You must be logged in to vote

No, "ignoring index" and "adding default index" is different.

ignore_index=True just ignores the existing index, and attach the new default index as defined in compute.default_index_type (so the index order could be mixed, but it still "ignores" the existing index)

If you want to get a fully sequenced index, you should set the compute.default_index_type to sequence.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by barashe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants