bigframes.geopandas.GeoSeries.median#
- GeoSeries.median(*, exact: bool = True) float#
Return the median of the values over the requested axis.
Examples:
>>> import bigframes.pandas as bpd >>> s = bpd.Series([1, 2, 3]) >>> s.median() np.float64(2.0)
With a DataFrame
>>> df = bpd.DataFrame({'a': [1, 2], 'b': [2, 3]}, index=['tiger', 'zebra']) >>> df a b tiger 1 2 zebra 2 3 [2 rows x 2 columns]
>>> df.median() a 1.5 b 2.5 dtype: Float64
- Parameters:
exact (bool. default True) – Default True. Get the exact median instead of an approximate one.
- Returns:
Scalar.
- Return type:
scalar