Pandas Groupby Mean Round Code Example

Snippet 1
  data.mean().round(0)  # Rounds mean to nearest integer, e.g. 1.95 = 2 and 1.05 = 1