pandas.Series.min — pandas 1.0.1 documentation (original) (raw)
Return the minimum of the values for the requested axis.
idx = pd.MultiIndex.from_arrays([ ... ['warm', 'warm', 'cold', 'cold'], ... ['dog', 'falcon', 'fish', 'spider']], ... names=['blooded', 'animal']) s = pd.Series([4, 2, 0, 8], name='legs', index=idx) s blooded animal warm dog 4 falcon 2 cold fish 0 spider 8 Name: legs, dtype: int64
Min using level names, as well as indices.