Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DOC/ENH: Add full list of argument for DataFrame.query #61405

Closed
Assignees
arthurlw
Labels
@loicdiridollou

Description

@loicdiridollou

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs onmainhere

Location of the documentation

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.query.html#pandas.DataFrame.query

Documentation problem

This question arises when@MarcoGorelli wanted to fully typeDataFrame.query in the stubs repopandas-dev/pandas-stubs#1173. Right now the extra arguments are passed through**kwargs but when we go through the code we see that they are the same as the ones inpd.eval (https://pandas.pydata.org/docs/reference/api/pandas.eval.html#pandas.eval).

Suggested fix for documentation

Considering that this would help to expand the typehinting in that area and that the number of arguments is limited, would it be conceivable to expose all the arguments instead of relying on**kwargs?

For information this is the list of arguments that would need to be added:

parser:Literal["pandas","python"]= ...,engine:Literal["python","numexpr"]|None= ...,local_dict:dict[_str,Any]|None= ...,global_dict:dict[_str,Any]|None= ...,resolvers:list[Mapping]|None= ...,level:int= ...,target:object|None= ...,

Seepandas-dev/pandas-stubs#1193 for the potential typehinting.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp