keep-loving-pythonのブログ

Pythonを愛し続けたいです(Pythonが流行っている限りですが。。。)

解決策。ValueError: view limit minimum -36912.5 is less than 1 and is an invalid Matplotlib date value. This often happens if you pass a non-datetime value to an axis that has datetime units

環境

Windows10 Python3.7.2 GPUなしPC

エラー

ValueError: view limit minimum -36912.5 is less than 1 and is an invalid Matplotlib date value. This often happens if you pass a non-datetime value to an axis that has datetime units

エラーに出会ったgithubのURL

https://github.com/bnsreenu/python_for_microscopists

具体的には、 181_multivariate_timeseries_LSTM_GE.py

解決策

すみません、どういう意味でしょう。以下。↓
でも、この1行で完璧です。
要するに、軸を何にするか、明示するという意味だと思います。自動だと何か違うものになっているのかな???

df_forecast.plot(x='Date')

↓ 以下の記事を参考にした気がする。 https://stackoverflow.com/questions/57874226/valueerror-view-limit-minimum-35738-3640567-is-less-than-1-and-is-an-invalid-m

疑問点

オリジナルのコードには、この行はないので、何かの条件で問題がない場合もあるよう。

コメント

コメントなどあれば、お願いします。