Skip to content

Commit

Permalink
Added test for handling strings nulls (" "), differentiating behavior…
Browse files Browse the repository at this point in the history
… between Python and kdb+
  • Loading branch information
chraberturas committed Jan 16, 2024
1 parent 34ee237 commit 217cedf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_pandas_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2065,4 +2065,9 @@ def test_nunique(kx, q):
for c in q.key(q_m).py():
assert p_m[c] == q_m[c].py()

tab = kx.q('([]A:("";" ";"";"foo"))')
df = tab.pd()
p_m = df.nunique()
q_m = tab.nunique()
assert p_m['A'] == 1 + q_m['A'].py()

0 comments on commit 217cedf

Please sign in to comment.