-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
single column DF plot, color problem #3486
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
Thanks. This is actually passed over to matplotlib as-is via closing as 'won't fix'. |
Thanks. Maybe I'm not making myself clear enough Say you start with a big DF and a list of its columns and assign a color to each column.
Now you do some manipulations to filter out unwanted columns, eg
and in the end, you plot
Now if x > 1, you won't have any problem, but it's possible x=1 and will result in the above error. I don't think it's the user's responsibility here to write an awkward check
|
Thanks, I do see your point. The implicit rule of thumb is: if it's not an explicit argument It may be possible to make singleton dataframes work as expected here without touching |
Closes pandas-dev#3486 (cherry picked from commit 1bee035)
will give an error
All you need to do is to de-list the color parameter
No problem if df is more than one columns.
The text was updated successfully, but these errors were encountered: