-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DataFrame.plot error when both 'color' and 'style' arguments are passed #9671
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
Comments
It looks like your example is supposed to work, it's just that our regex in this block checking for the color is expecting a string, not a list of strings. Notice that It should be a pretty quick fix, just check if |
Sure, submitting a PR will be a first time for me, but there is always a first time ;-) |
There is indeed! We're here if you have troubles. The only trick is to correctly determine whether it's a string or list. There's a function in pandas/core/common.py |
It looks like I've submitted a PR ;-) |
I've submitted a new PR #9674 with a test for the bug fix. |
…en both 'color' and 'style' keywords were passed and there was no color symbol in the style strings (this should be allowed)
…olor' and 'style' keywords were passed and there was no color symbol in the style strings (this should be allowed)
Closed via #9674 |
In pandas 0.15.2, when passing both arguments 'color' and 'style' to the plot method, there is an error which I think should be raised only when there is a color symbol in the style string. But in the example below, the error is raised even though there is no color symbol in the line string:
The error is not clear (TypeError: expected string or buffer). This should be fixed, although it is easy to work around:
The text was updated successfully, but these errors were encountered: