-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
[Bug]: Pandas plot does not accept Columns for color
keyword
#21795
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
We don't maintain |
@jklymak Thank you for you response. You are rigth, this is the wrong Repo. |
The issue could still be on our side, but if so, then please isolate it to work without pandas.... |
@jklymak I came back to this issue and I found out that Since pandas trys to pass the keywords without any changes, the Is this a bug and should this issue be reopend? |
No this has been this way for many years, and changing has been discussed and rejected in the past. |
Thanks for your response. In this case this is closed for me, too. |
Bug summary
I tried to plot a scatterplot with different groups, with one color for each group. I thought is is enought to pass the name of the column to the
color
-keyword, but this throws an error:ValueError: 'c' argument must be a color, a sequence of colors, or a sequence of numbers, not ['color']
.Code for reproduction
Actual outcome
Right now I get an error:
ValueError: 'c' argument must be a color, a sequence of colors, or a sequence of numbers, not ['color']
.Expected outcome
I expect this figure, which was generated using the commented line
s.plot(x='A', y='B', kind='scatter', color=s['color'].values)
Additional information
No response
Operating system
Linux-5.10.0-8-amd64-x86_64-with-glibc2.31
Matplotlib Version
3.4.3
Matplotlib Backend
module://matplotlib_inline.backend_inline
Python version
3.9.7
Jupyter version
6.4.4
Installation
conda
The text was updated successfully, but these errors were encountered: