Skip to content

BUG: Ignore_index on concat does not ignore index #39896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mvirag2000 opened this issue Feb 18, 2021 · 2 comments
Closed

BUG: Ignore_index on concat does not ignore index #39896

mvirag2000 opened this issue Feb 18, 2021 · 2 comments
Labels
Bug Needs Info Clarification about behavior needed to assess issue Reshaping Concat, Merge/Join, Stack/Unstack, Explode

Comments

@mvirag2000
Copy link

I have this line of code which works fine in pandas 1.1.5 but not in 1.2.2:

vintable = pd.concat([vintable, data], join='inner', ignore_index=True)

I expect this to concatenate the rows, inner-join the columns, and then reindex - which it used to do in December. But now I get this error: "Reindexing only valid with uniquely valued Index objects." As I read the docs, it should not be looking at the index at all. So, I am fine sticking with 1.1.5 but I think is a bug ... TIA

@mvirag2000 mvirag2000 added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Feb 18, 2021
@attack68
Copy link
Contributor

a reproducible code snippet is needed to debug.

related to #39882 ?

@phofl phofl added Needs Info Clarification about behavior needed to assess issue Reshaping Concat, Merge/Join, Stack/Unstack, Explode and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Feb 19, 2021
@MarcoGorelli
Copy link
Member

Hi @mvirag2000 - closing for now, will reopen if you include a reproducible example

@phofl phofl added this to the No action milestone Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Info Clarification about behavior needed to assess issue Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

No branches or pull requests

4 participants