Skip to content

Commit 248b9ae

Browse files
committed
Remove use of DataFrame.query in tests to remove dependency on numexpr
1 parent e13bcfe commit 248b9ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/test_groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5144,7 +5144,7 @@ def test_groupby_categorical_two_columns(self):
51445144
for key in [('a', 1), ('b', 2), ('b', 1), ('a', 2)]:
51455145
c, i = key
51465146
result = groups_double_key.get_group(key)
5147-
expected = test.query('cat == @c & ints == @i')
5147+
expected = test[(test.cat == c) & (test.ints == i)]
51485148
assert_frame_equal(result, expected)
51495149

51505150
d = {'C1': [3, 3, 4, 5], 'C2': [1, 2, 3, 4], 'C3': [10, 100, 200, 34]}

0 commit comments

Comments
 (0)