Skip to content

Docstring fixes for PR06 errors #31838

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 6 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/core/arrays/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ def __arrow_array__(self, type=None):

Parameters
----------
na_tuple : boolean, default True
na_tuple : bool, default True
Returns NA as a tuple if True, ``(nan, nan)``, or just as the NA
value itself if False, ``nan``.

Expand Down
3 changes: 2 additions & 1 deletion pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,8 @@ def shift(self, periods=1, freq=None, axis=0, fill_value=None):
----------
periods : int, default 1
Number of periods to shift.
freq : frequency string
freq : str, optional
Frequency string
axis : axis to shift, default 0
fill_value : optional

Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ def to_frame(self, index=True, name=None):
index : bool, default True
Set the index of the returned DataFrame as the original MultiIndex.

name : list / sequence of strings, optional
name : list / sequence of str, optional
The passed names should substitute index level names.

Returns
Expand Down
6 changes: 3 additions & 3 deletions pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,11 +1139,11 @@ def append(
queries, or True to use all columns. By default only the axes
of the object are indexed. See `here
<https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#query-via-data-columns>`__.
min_itemsize : dict of columns that specify minimum string sizes
nan_rep : string to use as string nan representation
min_itemsize : dict of columns that specify minimum str sizes
nan_rep : str to use as str nan representation
chunksize : size to chunk the writing
expectedrows : expected TOTAL row size of this table
encoding : default None, provide an encoding for strings
encoding : default None, provide an encoding for str
dropna : bool, default False
Do not write an ALL nan row to the store settable
by the option 'io.hdf.dropna_table'.
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/spss.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def read_spss(

Parameters
----------
path : string or Path
path : str or Path
File path.
usecols : list-like, optional
Return a subset of the columns. If None, return all columns.
Expand Down
4 changes: 2 additions & 2 deletions pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def read_sql_query(
Using SQLAlchemy makes it possible to use any DB supported by that
library.
If a DBAPI2 object, only sqlite3 is supported.
index_col : str or list of strings, optional, default: None
index_col : str or list of str, optional, default: None
Column(s) to set as index(MultiIndex).
coerce_float : bool, default True
Attempts to convert values of non-string, non-numeric objects (like
Expand Down Expand Up @@ -364,7 +364,7 @@ def read_sql(
library. If a DBAPI2 object, only sqlite3 is supported. The user is responsible
for engine disposal and connection closure for the SQLAlchemy connectable. See
`here <https://docs.sqlalchemy.org/en/13/core/connections.html>`_
index_col : str or list of strings, optional, default: None
index_col : str or list of str, optional, default: None
Column(s) to set as index(MultiIndex).
coerce_float : bool, default True
Attempts to convert values of non-string, non-numeric objects (like
Expand Down