cudf.DataFrame.median#

DataFrame.median(axis=None, skipna=True, level=None, numeric_only=None, **kwargs)#

Return the median of the values for the requested axis.

Parameters
skipnabool, default True

Exclude NA/null values when computing the result.

Returns
scalar

Notes

Parameters currently not supported are level and numeric_only.

Examples

>>> import cudf
>>> ser = cudf.Series([10, 25, 3, 25, 24, 6])
>>> ser
0    10
1    25
2     3
3    25
4    24
5     6
dtype: int64
>>> ser.median()
17.0