### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Statistical functions (`scipy.stats`) »

# scipy.stats.median

`scipy.stats.``median`(a, axis=0)

  Returns the median of the passed array along the given axis.

  If there is an even number of entries, the mean of the 2 middle values is returned.

  Parameters: | a : array axis=0 : int
  Returns: | The median of each remaining axis, or of all of the values in the array : if axis is None. :

### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Statistical functions (`scipy.stats`) »