We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
query()
1 parent 75e3a17 commit 1a2a1d2Copy full SHA for 1a2a1d2
tests/nested_pandas/nestedframe/test_nestedframe.py
@@ -447,6 +447,11 @@ def test_query():
447
# Check for the multi-layer error
448
with pytest.raises(ValueError):
449
base.query("a > 2 & nested.c > 1")
450
+ # Create another nest in order to further test the multi-layer error
451
+ base_2 = base.eval("nest2.c = nested.c + 1")
452
+ assert len(base_2.nested_columns) == 2
453
+ with pytest.raises(ValueError):
454
+ base_2.query("nested.c > 1 & nest2.c > 2")
455
456
# Test nested queries
457
nest_queried = base.query("nested.c > 1")
0 commit comments