-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
you would need a test for this & a whatsnew entry. |
Codecov Report
@@ Coverage Diff @@
## master #20727 +/- ##
=======================================
Coverage 31.89% 31.89%
=======================================
Files 166 166
Lines 52421 52421
=======================================
Hits 16722 16722
Misses 35699 35699
Continue to review full report at Codecov.
|
Can you merge master for this? |
Hello @wuhaochen! Thanks for updating the PR.
|
@jreback is anything else needed here, or can this be merged? |
There was a problem hiding this 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.
pandas/tests/plotting/test_misc.py
Outdated
@@ -4,6 +4,7 @@ | |||
|
|||
import pytest | |||
|
|||
import pandas as pd |
There was a problem hiding this comment.
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.
pandas/tests/plotting/test_misc.py
Outdated
1, color=color_before) | ||
assert len(color_after) == len(color_before) | ||
|
||
df = pd.DataFrame(np.random.randn(48, 4), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just df = DataFrame(...)
looks fine. if someone wants to push the changes @mroeschke suggested would be great. @WillAyd any comments. |
thanks @wuhaochen |
git diff master --name-only -- "*.py" | flake8