File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1994,15 +1994,15 @@ def test_query_on_expr_with_comment():
1994
1994
tm .assert_frame_equal (result , expected )
1995
1995
1996
1996
1997
- def test_query_on_expr_with_backticks ():
1997
+ def test_query_on_expr_with_string_with_backticks ():
1998
1998
# GH 59285
1999
1999
df = DataFrame (("`" , "`````" , "``````````" ), columns = ["#backticks" ])
2000
2000
result = df .query ("'`' < `#backticks`" )
2001
2001
expected = df ["`" < df ["#backticks" ]]
2002
2002
tm .assert_frame_equal (result , expected )
2003
2003
2004
2004
2005
- def test_query_on_expr_with_backticked_string_same_as_column_name ():
2005
+ def test_query_on_expr_with_string_with_backticked_substring_same_as_column_name ():
2006
2006
# GH 59285
2007
2007
df = DataFrame (("`" , "`````" , "``````````" ), columns = ["#backticks" ])
2008
2008
result = df .query ("'`#backticks`' < `#backticks`" )
You can’t perform that action at this time.
0 commit comments