8000 DOC: frame.py doctest fixing by stijnvanhoey · Pull Request #25097 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DOC: frame.py doctest fixing #25097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 3, 2019
Merged
Prev Previous commit
Next Next commit
Improve dosctring of query method
  • Loading branch information
stijnvanhoey committed Feb 1, 2019
commit 967455e9b6f76324581316a4a1b8d8997735156e
20 changes: 11 additions & 9 deletions 20 pandas/core/frame.py
4698
Original file line number Diff line number Diff line change
Expand Up @@ -3016,28 +3016,30 @@ def query(self, expr, inplace=False, **kwargs):

Parameters
----------
expr : string
expr : str
The query string to evaluate. You can refer to variables
in the environment by prefixing them with an '@' character like
``@a + b``.
inplace : bool
Whether the query should modify the data in place or return
a modified copy

.. versionadded:: 0.18.0

kwargs : dict
a modified copy.
**kwargs
See the documentation for :func:`pandas.eval` for complete details
on the keyword arguments accepted by :meth:`DataFrame.query`.

.. versionadded:: 0.18.0

Returns
-------
q : DataFrame
DataFrame
DataFrame resulting from the provided query expression.

See Also
--------
pandas.eval
DataFrame.eval
eval : Evaluate a string describing operations on
DataFrame columns.
DataFrame.eval : Evaluate a string describing operations on
DataFrame columns.

Notes
-----
Expand Down
0