cudf.Series.kurtosis#

Series.kurtosis(axis=0, skipna=True, numeric_only=False, **kwargs)[source]#

Return Fisher’s unbiased kurtosis of a sample.

Kurtosis obtained using Fisher’s definition of kurtosis (kurtosis of normal == 0.0). Normalized by N-1.

Parameters:
axis: {index (0), columns(1)}

Axis for the function to be applied on.

skipna: bool, default True

Exclude NA/null values when computing the result.

numeric_onlybool, default False

If True, includes only float, int, boolean columns. If False, will raise error in-case there are non-numeric columns.

Returns:
Series or scalar

Examples

Series

>>> import cudf
>>> series = cudf.Series([1, 2, 3, 4])
>>> series.kurtosis()
-1.1999999999999904

DataFrame

>>> import cudf
>>> df = cudf.DataFrame({'a': [1, 2, 3, 4], 'b': [7, 8, 9, 10]})
>>> df.kurt()
a   -1.2
b   -1.2
dtype: float64

Pandas Compatibility Note

pandas.DataFrame.kurtosis()

Parameters currently not supported are level and numeric_only