例如: import seaborn as snsplot = exercise.groupby(['diet'])['kind'].value_counts(normalize=True).mul(100).reset_index(name='percentage%')
g = sns.catplot(x="diet"我想堆叠kind,但似乎catpl
当我尝试在jupyter笔记本中使用seaborn绘制双轴绘图时,我遇到了一个问题:代码在Python2中工作得非常好。:3720: UserWarning: catplot is a figure-level function and does not accept target axes.我的代码: import pandas as pdimport seaborn as sns
df = pd.read_csv('tips.csv'