October 2019
Beginner to intermediate
674 pages
16h 43m
English
In pandas, you can use the following command:
DallasData.groupby('active_status').agg({'services_completed':np.sum,'age_median':np.mean})

Aggregating by more than one column or multi-index aggregation is also possible. Suppose we want zip code-wise details of active and inactive customers.
Read now
Unlock full access