1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Predictive Analytics in Python

Connected

Exercise

Calculating average incidences

The most important column in the predictor insight graph table is the target incidence column. This column shows the average target value for each group.

Instructions

100 XP
  • Create a DataFrame basetable_income that only contains the variables target and income.
  • Group this DataFrame by income.
  • Calculate the average target incidence for each group in income.