python中利用pandas dataframe畫柱狀圖bar的x軸日期格式化問題

在pandas dataframe中使用plot畫圖,當x軸是日期的時候,x軸會顯示時間和分鐘。 如果使用set_major_formatter函數格式化 ax.xaxis.set_major_formatter(DateFormatter('%Y-%m-%d')); 那麼會報錯 ValueError: DateFormatter found a value of x=0, which is an
相關文章
相關標籤/搜索