Skip to content
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

Error on example plots: Horizontal boxplot with observations #3555

Closed
nirsun opened this issue Nov 9, 2023 · 3 comments
Closed

Error on example plots: Horizontal boxplot with observations #3555

nirsun opened this issue Nov 9, 2023 · 3 comments

Comments

@nirsun
Copy link

nirsun commented Nov 9, 2023

Hi,
I am just starting to use seaborn. I am trying to plot the 'Horizontal boxplot with observations" from https://seaborn.pydata.org/examples/horizontal_boxplot.html

This is what my plot looks (with the same exact example code shown in the link). It is different to what I find in the documentation.
image

There're also multiple (similar) warning messages as below:

lib/python3.11/site-packages/seaborn/_oldcore.py:1498: FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, CategoricalDtype) instead
if pd.api.types.is_categorical_dtype(vector):

Can you please let me know what went wrong?

Few details:
jupyter notebook or Spyder 5.4.3
python 3.11.5
macOS 13.6

Best,
SN

@mwaskom
Copy link
Owner

mwaskom commented Nov 10, 2023

You need to update your seaborn.

@nirsun
Copy link
Author

nirsun commented Nov 10, 2023

Thank you! The latest version (0.13.0) worked.

@mwaskom mwaskom closed this as completed Nov 10, 2023
@mwaskom
Copy link
Owner

mwaskom commented Nov 10, 2023

(For posterity, the reason is that the default value for dodge= has changed from True (always dodge) to "auto" (dodge unless the categorical and hue variable are redundant).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants