6
我有一個數據幀看起來像這樣regplot:Seaborn使用datetime64爲x軸
date score
2017-06-04 90
2017-06-03 80
2017-06-02 70
當我嘗試這樣做:
sns.regplot(x=date, y=score, data=df)
我得到了一個錯誤:
TypeError: reduction operation 'mean' not allowed for this dtype
日期的dtype爲datetime64[ns]
,int64
分數列。
如何隱藏date
列以便regplot
可以正常工作?
隨意投票接受的答案! – piRSquared