-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix pointplot(native_scale=True, ...) #3811
Conversation
Just ran into this plotting something.
I think your issue is perhaps just that the "native scale" for a series with a category dtype is a categorical representation, not a numeric one. I believe that is consistent and shouldn't change. |
That does make sense. Thank you for the clarification! As it does not seem to be a reasonable/useful function call, I would have appreciated a warning when
|
I could see how that would be helpful but I'm generally opposed to issuing warnings where the user isn't doing something unambiguously "wrong", otherwise they can get very noisy and annoying. |
I do not quite agree as someone who tripped over it, but the argument is valid. Last suggestion before close then: The documentation for the parameter (in at least pointplot and boxplot) states
I would suggest to rephrase this to indicate that the dtype of the categorical axis must not be category for this. Something like:
|
If you're trying to emphasize "dtype" then I'm not sure that's accurate: seaborn will treat series that have an object dtype but numeric values as numeric, it's only the categorical dtype that is interpreted as an explicit request for categorical treatment. |
Yes, I tried. Do you have a more accurate suggestion? :) With this insight my personal (user) intuition is that dtype "category" should be treated the same as dtype "object" with regards to the Another suggestion:
|
Just ran into this plotting something.
Sorry if this should be done cleaner.
I removed the backward compatible code because it failed with working native_scale.