Skip to content

Commit

Permalink
REFACTOR-#1741: Use low-level api for kurt function implementation wi…
Browse files Browse the repository at this point in the history
…th defined level parameter (#1719)

Signed-off-by: Alexander Myskov <[email protected]>
  • Loading branch information
amyskov authored Jul 22, 2020
1 parent 5c1dff6 commit 37b7d2c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modin/pandas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,13 +1473,16 @@ def kurt(self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs):
axis = self._get_axis_number(axis)
if level is not None:
func_kwargs = {
"axis": axis,
"skipna": skipna,
"level": level,
"numeric_only": numeric_only,
}

return self.apply("kurt", **func_kwargs)
return self.__constructor__(
query_compiler=self._query_compiler._apply_text_func_elementwise(
"kurt", axis, **func_kwargs
)
)

if numeric_only:
self._validate_dtypes(numeric_only=True)
Expand Down

0 comments on commit 37b7d2c

Please sign in to comment.