AttributeError: module 'seaborn' has no attribute 'categorical' #105
Unanswered
napvasconcelos
asked this question in
Q&A
Replies: 1 comment
-
|
I got a similar error and restarting the kernel helped. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I got this message by running your example:
from statannotations.Annotator import Annotator
%matplotlib inline
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
sns.set(style="whitegrid")
df = sns.load_dataset("tips")
x = "day"
y = "total_bill"
order = ['Sun', 'Thur', 'Fri', 'Sat']
ax = sns.boxplot(data=df, x=x, y=y, order=order)
annot = Annotator(ax, [("Thur", "Fri"), ("Thur", "Sat"), ("Fri", "Sun")], data=df, x=x, y=y, order=order)
annot.configure(test='Mann-Whitney', text_format='star', loc='outside', verbose=2)
annot.apply_test()
ax, test_results = annot.annotate()
Please, let me know whether you have any suggestions.
Name: seaborn
Version: 0.11.2
Summary: seaborn: statistical data visualization
Home-page: https://seaborn.pydata.org
Author: Michael Waskom
Author-email: mwaskom@gmail.com
License: BSD (3-clause)
Location: /home/napvasconcelos/miniconda3/envs/phy2/lib/python3.10/site-packages
Requires: matplotlib, numpy, pandas, scipy
Required-by: statannotations
Best,
Nivaldo
Beta Was this translation helpful? Give feedback.
All reactions