Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
single column DF plot, color problem #3486
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.
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