pandas.Index.min — pandas 0.24.0rc1 documentation (original) (raw)
Index.
min
(axis=None, skipna=True)[source]¶
Return the minimum value of the Index.
Parameters: | axis : {None} Dummy argument for consistency with Series skipna : bool, default True |
---|---|
Returns: | scalar Minimum value. |
See also
Return the maximum value of the object.
Return the minimum value in a Series.
Return the minimum values in a DataFrame.
Examples
idx = pd.Index([3, 2, 1]) idx.min() 1
idx = pd.Index(['c', 'b', 'a']) idx.min() 'a'
For a MultiIndex, the minimum is determined lexicographically.
idx = pd.MultiIndex.from_product([('a', 'b'), (2, 1)]) idx.min() ('a', 1)