diff --git a/pandas/core/base.py b/pandas/core/base.py index 280b8849792e3..fc6550d45b0c3 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -801,7 +801,35 @@ def argmax(self, axis=None): return nanops.nanargmax(self.values) def min(self): - """ The minimum value of the object """ + """ + Return the minimum value of the Index. + + Returns + ------- + scalar + Minimum value. + + See Also + -------- + Index.max : Return the maximum value of the object. + Series.min : Return the minimum value in a Series. + DataFrame.min : 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) + """ return nanops.nanmin(self.values) def argmin(self, axis=None):