File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,6 @@ Other API changes
401
401
- Index set operations (like union or intersection) will now ignore the dtype of
402
402
an empty ``RangeIndex `` or empty ``Index `` with object dtype when determining
403
403
the dtype of the resulting Index (:issue: `60797 `)
404
- - :meth: `DataFrame.query ` does not accept ``**kwargs `` anymore and requires passing keywords for desired arguments (:issue: `61405 `)
405
404
406
405
.. ---------------------------------------------------------------------------
407
406
.. _whatsnew_300.deprecations :
Original file line number Diff line number Diff line change @@ -4694,17 +4694,16 @@ def query(
4694
4694
if not isinstance (expr , str ):
4695
4695
msg = f"expr must be a string to be evaluated, { type (expr )} given"
4696
4696
raise ValueError (msg )
4697
- kwargs : Any = {
4698
- "level" : level + 1 ,
4699
- "target" : None ,
4700
- "parser" : parser ,
4701
- "engine" : engine ,
4702
- "local_dict" : local_dict ,
4703
- "global_dict" : global_dict ,
4704
- "resolvers" : resolvers or (),
4705
- }
4706
4697
4707
- res = self .eval (expr , ** kwargs )
4698
+ res = self .eval (
4699
+ expr ,
4700
+ level = level + 1 ,
4701
+ parser = parser ,
4702
+ engine = engine ,
4703
+ local_dict = local_dict ,
4704
+ global_dict = global_dict ,
4705
+ resolvers = resolvers or (),
4706
+ )
4708
4707
4709
4708
try :
4710
4709
result = self .loc [res ]
You can’t perform that action at this time.
0 commit comments