Skip to content

Commit

Permalink
Adds a max test with keyed table and axis=0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús López-González committed Jan 17, 2024
1 parent eae9bfd commit 28214ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_pandas_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,15 @@ def test_pandas_max(q):
for i in range(100):
assert float(qmax[i]) == float(pmax[i])

ktab = q('{1!x}', tab)
df = ktab.pd()

qmax = ktab.max().py()
pmax = df.max()

assert float(pmax['price']) == qmax['price']
assert float(pmax['ints']) == qmax['ints']


def test_pandas_all(q):
tab = q(
Expand Down

0 comments on commit 28214ad

Please sign in to comment.