6
x軸としてdatetime64使用してregplot:Seabornは、私がデータフレームは、次のようになります持って
date score
2017-06-04 90
2017-06-03 80
2017-06-02 70
私はこれを試してみました:
TypeError: reduction operation 'mean' not allowed for this dtype
:私はエラーを得た
sns.regplot(x=date, y=score, data=df)
日付のdtypeは
datetime64[ns]
、スコア列は
int64
です。
regplot
が機能するように、date
列をどのように変換できますか?
受け入れられた回答も同様に投票してください。 – piRSquared