Python 使用Seaborn库的factorplot函数绘图出现了下面的提示:
The factorplot function has been renamed to catplot. The original name will be removed in a future release. Please update your code. Note that the default kind in factorplot (‘point’) has changed ‘strip’ in catplot.
原来的代码:
sns.factorplot(x='type',y='average_boxoffice',data=mean_df,color='red',kind='point')
错误提示我们要把factorplot改成catplot。
sns.catplot(x='type',y='average_boxoffice',data=mean_df,color='red',kind='point')
就没有错误正常显示了!
相关参考