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.
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.