Skip to content

Commit

Permalink
minor: rename filternan (suggested)
Browse files Browse the repository at this point in the history
  • Loading branch information
chraberturas committed Jan 22, 2024
1 parent 2aa3a6e commit 4aff510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pykx/pandas_api/pandas_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ def sum(self, axis=0, skipna=True, numeric_only=False, min_count=0):
@convert_result
def nunique(self, axis=0, dropna=True):
res, cols = preparse_computations(self, axis, skipna=False)
filterNan = q('{$[all[10h=type each x]|11h = type x;x;'
filternan = q('{$[all[10h=type each x]|11h = type x;x;'
'x where not null x]}each')
res = filterNan(res) if dropna else res
res = filternan(res) if dropna else res
return (q("('[count;distinct]')", res), cols)

def agg(self, func, axis=0, *args, **kwargs): # noqa: C901
Expand Down

0 comments on commit 4aff510

Please sign in to comment.