df["date"] = df["date"].astype("datetime64") df.groupby(df["date"].dt.month).count().plot(kind="bar")