If you want to aggregate over columns or rows using one or more operations, try pd.DataFrame.agg. Find an example of agg method in the code above.
Link to the source code.
Notifications