Skip to content

Plot uses incorrect colors when columns have the same name #11136

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
stevenmanton opened this issue Sep 17, 2015 · 2 comments · Fixed by #32451
Closed

Plot uses incorrect colors when columns have the same name #11136

stevenmanton opened this issue Sep 17, 2015 · 2 comments · Fixed by #32451
Labels
Needs Tests Unit test(s) needed to prevent regressions
Milestone

Comments

@stevenmanton
Copy link

It seems like the plot function jumbles up the colors when columns in a DataFrame have the same name:

pd.concat([pd.DataFrame({'b': [0, 1, 0], 'a': [1, 2, 3]}), pd.DataFrame({'a': [2, 4, 6]})], axis=1).plot();

image

@jorisvandenbossche jorisvandenbossche added this to the Next Major Release milestone Jun 24, 2016
@jorisvandenbossche
Copy link
Member

This seems to work correctly on current master. But we could add a test to make sure it keeps working.

@gabrielvf1
Copy link
Contributor

I have checked and the code at the master really works fine, check the printscreen i tooked:

pandasTest

Now Im going to make a test to check if everything is correct at the graphic before it plots.

@simonjayhawkins simonjayhawkins added Needs Tests Unit test(s) needed to prevent regressions and removed Visualization plotting labels Mar 5, 2020
@simonjayhawkins simonjayhawkins modified the milestones: Contributions Welcome, 1.1 Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Tests Unit test(s) needed to prevent regressions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants