Examples
import numpy as np
import pandas as pd
idx = pd.MultiIndex.from_arrays([
['warm', 'warm', 'cold', 'cold'],
['fox', 'eagle', 'snake', 'spider']],
names=['blooded', 'animal'])
s = pd.Series([4, 2, 0, 8], name='legs', index=idx)
s
s.max()
Max using level names, as well as indices:
s.max(level='blooded')
s.max(level=0)