Session Ready
Exercise

Detecting seasonality

Assume you want to predict whether a candidate donor will donate next month. As predictive variables, you want to include variables like mean gift, maximum gift and minimum gift last month. Given is a pandas dataframe gifts with all the donations made in 2017. Check for seasonality in the gifts, to know whether you should take into account seasonality when constructing the basetable.

Instructions
100 XP
  • Calculate for each "month" the mean gift made by all donors.
  • Calculate for each "month" the number of gifts made by all donors.
  • Calclulate for each "month" the median of gifts made by all donors.