Assign Name to a Pandas Aggregation

By default, aggregating a column returns the name of that column. If you want to assign a new name to the aggregation, use name = (column, agg_method).

Link to Google Colab notebook of this tip.

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran