Skip to content

Commit

Permalink
Define kurt rather than aliasing so that it is inherited.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Aug 18, 2021
1 parent 705d43b commit c6aa2fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 0 additions & 2 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -6457,8 +6457,6 @@ def kurtosis(
axis, skipna, level, numeric_only, **kwargs
)

kurt = kurtosis

def skew(
self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs
):
Expand Down
13 changes: 12 additions & 1 deletion python/cudf/cudf/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
)
from cudf.core.column_accessor import ColumnAccessor
from cudf.core.join import merge
from cudf.utils.docutils import copy_docstring
from cudf.utils.dtypes import (
_is_non_decimal_numeric_dtype,
_is_scalar_or_zero_d_array,
Expand Down Expand Up @@ -4112,7 +4113,17 @@ def kurtosis(
)

# Alias for kurtosis.
kurt = kurtosis
@copy_docstring(kurtosis)
def kurt(
self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs
):
return self.kurtosis(
axis=axis,
skipna=skipna,
level=level,
numeric_only=numeric_only,
**kwargs,
)

def skew(
self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs
Expand Down

0 comments on commit c6aa2fb

Please sign in to comment.