It is a heat map showing the activity level of events in one year. This article explains in an easy-to-understand manner.
# `s`Is a series of suitable date type
pd.crosstab(s.dt.day_name().rename('day_of_week'), s.dt.week.rename('week')).loc[['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']].style.background_gradient(axis=None, cmap='YlGn'))
Recommended Posts