how to show a frequency distribution based on date in python

Solutions on MaxInterview for how to show a frequency distribution based on date in python by the best coders in the world

showing results for - "how to show a frequency distribution based on date in python"
Erwan
10 Apr 2019
1df["date"] = df["date"].astype("datetime64")
2df.groupby(df["date"].dt.month).count().plot(kind="bar")