Datetime issue with matplotlib

前端 未结 5 1182
离开以前
离开以前 2021-01-18 02:09

I\'m pulling my hair to display a series with matplotlib.

I\'m working with python 2.7. I have a pandas Dataframe with dates. I converted dates to datetime and I\'m

5条回答
  •  情书的邮戳
    2021-01-18 02:41

    I faced a similar issue. You could try this:

    df2bis.set_index('dateObs', inplace=True)
    df2bis.index = pd.to_datetime(df2bis.index)
    df2bis.plot()
    

提交回复
热议问题