cudf.DataFrame.skew#

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

Return unbiased Fisher-Pearson skew of a sample.

Parameters:
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

Examples

Series

>>> import cudf
>>> series = cudf.Series([1, 2, 3, 4, 5, 6, 6])
>>> series
0    1
1    2
2    3
3    4
4    5
5    6
6    6
dtype: int64

DataFrame

>>> import cudf
>>> df = cudf.DataFrame({'a': [3, 2, 3, 4], 'b': [7, 8, 10, 10]})
>>> df.skew()
a    0.00000
b   -0.37037
dtype: float64

Pandas Compatibility Note

pandas.DataFrame.skew(), pandas.Series.skew()

The axis parameter is not currently supported.