Skip to content

Commit

Permalink
Adds whitespaces at skew (in line with existing code)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús López-González committed Dec 18, 2023
1 parent 3ffb68f commit c776c9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pykx/pandas_api/pandas_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ def skew(self, axis=0, skipna=True, numeric_only=False):
return (q(
'{[row]'
# adjusted Fisher-Pearson standardized moment
'm:{(sum(x-avg x)xexp y)%count x};'
'g1:{[m;x]m:m[x];m[3]%m[2]xexp 3%2}[m];'
'{[g1;x]g1[x]*sqrt[n*n-1]%neg[2]+n:count x}[g1] each row}',
'm:{(sum (x - avg x) xexp y) % count x};'
'g1:{[m;x]m:m[x]; m[3] % m[2] xexp 3%2}[m];'
'{[g1;x]g1[x] * sqrt[n * n-1] % neg[2] + n:count x}[g1] each row}',
res
), cols)

Expand Down

0 comments on commit c776c9a

Please sign in to comment.