我正在尝试使用seaborn catplot进行简单绘制并出现错误。
我有一些数据集,该属性具有; workingday and
cnt`作为属性。我正在尝试一个工作日vs CNT,并收到以下错误:
C:\Users\xx\Anaconda3\lib\site-packages\scipy\stats\stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
我的代码:
return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval
fig = plt.figure(figsize = (40,5))
sns.catplot(data=dataset, x = "workingday", y ="cnt",height=8,kind='bar')