upby.html)
  * [ Resampling ](../resampling.html)
  * [ Style ](../style.html)
  * [ Plotting ](../plotting.html)
  * [ Options and settings ](../options.html)
  * [ Extensions ](../extensions.html)
  * [ Testing ](../testing.html)
  * [ Missing values ](../missing_value.html)

  * [ __ ](../../index.html)
  * [ API reference ](../index.html)
  * [ DataFrame ](../frame.html)
  * pandas.DataFrame.min 

#  pandas.DataFrame.min  #

DataFrame.  min  (  _ axis  =  0  _ , _ skipna  =  True  _ , _ numeric_only  =
False  _ , _ **  kwargs  _ )  [ [source]  ](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/core/frame.py#L11635-L11646) #

    

Return the minimum of the values over the requested axis.

If you want the _index_ of the minimum, use ` idxmin  ` . This is the
equivalent of the ` numpy.ndarray  ` method ` argmin  ` .

Parameters  :

    

**axis** {index (0), columns (1)}

    

Axis for the function to be applied on. For  Series  this parameter is unused
and defaults to 0.

For DataFrames, specifying ` axis=None  ` will apply the aggregation across
both axes.

New in version 2.0.0.

**skipna** bool, default True

    

Exclude NA/null values when computing the result.

**numeric_only** bool, default False

    

Include only float, int, boolean columns. Not implemented for Series.

****kwargs**

    

Additional keyword arguments to be passed to the function.

Returns  :

    

Series or scalar

    

See also

[ ` Series.sum  ` ](pandas.Series.sum.html#pandas.Series.sum
"pandas.Series.sum")

    

Return the sum.

[ ` Series.min  ` ](pandas.Series.min.html#pandas.Series.min
"pandas.Series.min")

    

Return the minimum.

[ ` Series.max  ` ](pandas.Series.max.html#pandas.Series.max
"pandas.Series.max")

    

Return the maximum.

[ ` Series.idxmin  ` ](pandas.Series.idxmin.html#pandas.Series.idxmin
"pandas.Series.idxmin")

    

Return the index of the minimum.

[ ` Series.idxmax  ` ](pandas.Series.idxmax.html#pandas.Series.idxmax
"pandas.Series.idxmax")

    

Return the index of the maximum.

[ ` DataFrame.sum  ` ](pandas.DataFrame.sum.html#pandas.DataFrame.sum
"pandas.DataFrame.sum")

    

Return the sum over the requested axis.

` DataFrame.min  `

    

Return the minimum over the requested axis.

[ ` DataFrame.max  ` ](pandas.DataFrame.max.html#pandas.DataFrame.max
"pandas.DataFrame.max")

    

Return the maximum over the requested axis.

[ ` DataFrame.idxmin  ` ](pandas.DataFrame.idxmin.html#pandas.DataFrame.idxmin
"pandas.DataFrame.idxmin")

    

Return the index of the minimum over the requested axis.

[ ` DataFrame.idxmax  ` ](pandas.DataFrame.idxmax.html#pandas.DataFrame.idxmax
"pandas.DataFrame.idxmax")

    

Return the index of the maximum over the requested axis.

Examples

    
    
    >>> 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
    
    
    
    >>> s.min()
    0
    

[ __ previous  pandas.DataFrame.median  ](pandas.DataFrame.median.html
"previous page") [ next  pandas.DataFrame.mode  __
](pandas.DataFrame.mode.html "next page")

__ On this page

  * ` DataFrame.min()  `

[ __ Show Source ](../../_sources/reference/api/pandas.DataFrame.min.rst.txt)

© 2024, pandas via [ NumFOCUS, Inc. ](https://numfocus.org) Hosted by [
OVHcloud ](https://www.ovhcloud.com) .

Created using [ Sphinx ](https://www.sphinx-doc.org/) 7.2.6.  

Built with the [ PyData Sphinx Theme ](https://pydata-sphinx-
theme.readthedocs.io/en/stable/index.html) 0.14.4.