8000 DOC/CLN: Fix errors in DataFrame docstrings by dsaxton · Pull Request #24952 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DOC/CLN: Fix errors in DataFrame docstrings #24952

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 13 commits into from
Feb 14, 2019
Prev Previous commit
Next Next commit
Add more fixes
  • Loading branch information
Daniel Saxton committed Jan 26, 2019
commit 55510dfcaad66e9f6b7d5f5026678817b3bdd5e8
14 changes: 7 additions & 7 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def set_axis(self, labels, axis=0, inplace=None):
The axis to update. The value 0 identifies the rows, and 1
identifies the columns.

inplace : boolean, default None
inplace : bool, default None
Whether to return a new %(klass)s instance.

.. warning::
Expand Down Expand Up @@ -763,7 +763,7 @@ def pop(self, item):
Parameters
----------
item : str
Column label to be popped
Column label to be popped.

Returns
-------
Expand Down Expand Up @@ -926,7 +926,7 @@ def swaplevel(self, i=-2, j=-1, axis=0):

Parameters
----------
i, j : int, string (can be mixed)
i, j : int, str (can be mixed)
Level of index to be swapped. Can pass level name as string.

Returns
Expand Down Expand Up @@ -962,9 +962,9 @@ def rename(self, *args, **kwargs):
and raise on DataFrame or Panel.
dict-like or functions are transformations to apply to
that axis' values
copy : boolean, default True
Also copy underlying data
inplace : boolean, default False
copy : bool, default True
Also copy underlying data.
inplace : bool, default False
Whether to return a new %(klass)s. If True then value of copy is
ignored.
level : int or level name, default None
Expand All @@ -977,7 +977,7 @@ def rename(self, *args, **kwargs):

See Also
--------
pandas.NDFrame.rename_axis
NDFrame.rename_axis

Examples
--------
Expand Down
0