Skip to content

BUG: Fix a bug in plotting when using color array. #20726 #20727

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

Merged
merged 10 commits into from
Dec 31, 2018

Conversation

wuhaochen
Copy link
Contributor

@wuhaochen wuhaochen commented Apr 17, 2018

@jreback
Copy link
Contributor

jreback commented Apr 21, 2018

you would need a test for this & a whatsnew entry.

@codecov
Copy link

codecov bot commented Apr 22, 2018

Codecov Report

Merging #20727 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #20727   +/-   ##
=======================================
  Coverage   31.89%   31.89%           
=======================================
  Files         166      166           
  Lines       52421    52421           
=======================================
  Hits        16722    16722           
  Misses      35699    35699
Flag Coverage Δ
#multiple 30.29% <0%> (ø) ⬆️
#single 31.89% <0%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/plotting/_style.py 23.65% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 100ffff...892399a. Read the comment docs.

@jbrockmendel jbrockmendel added the Visualization plotting label Aug 4, 2018
@WillAyd
Copy link
Member

WillAyd commented Nov 23, 2018

Can you merge master for this?

@pep8speaks
Copy link

Hello @wuhaochen! Thanks for updating the PR.

@datapythonista
Copy link
Member

@jreback is anything else needed here, or can this be merged?

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments otherwise LGTM.

@@ -4,6 +4,7 @@

import pytest

import pandas as pd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this extra import since DataFrame (which your test uses) is already imported below.

1, color=color_before)
assert len(color_after) == len(color_before)

df = pd.DataFrame(np.random.randn(48, 4),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just df = DataFrame(...)

@jreback jreback added this to the 0.24.0 milestone Dec 30, 2018
@jreback
Copy link
Contributor

jreback commented Dec 30, 2018

looks fine. if someone wants to push the changes @mroeschke suggested would be great. @WillAyd any comments.

@jreback jreback merged commit a7d3648 into pandas-dev:master Dec 31, 2018
@jreback
Copy link
Contributor

jreback commented Dec 31, 2018

thanks @wuhaochen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Extra color introduced with plot.
7 participants