Skip to content

DOC: Fixing spaces before non param colons in docstrings. #23805

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 1 commit into from
Nov 21, 2018
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
8 changes: 4 additions & 4 deletions pandas/core/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,8 @@ def rank(values, axis=0, method='average', na_option='keep',
The method by which tiebreaks are broken during the ranking.
na_option : {'keep', 'top'}, default 'keep'
The method by which NaNs are placed in the ranking.
- ``keep`` : rank each NaN value with a NaN ranking
- ``top`` : replace each NaN with either +/- inf so that they
- ``keep``: rank each NaN value with a NaN ranking
- ``top``: replace each NaN with either +/- inf so that they
there are ranked at the top
ascending : boolean, default True
Whether or not the elements should be ranked in ascending order.
Expand Down Expand Up @@ -1473,10 +1473,10 @@ def take(arr, indices, axis=0, allow_fill=False, fill_value=None):
allow_fill : bool, default False
How to handle negative values in `indices`.

* False : negative values in `indices` indicate positional indices
* False: negative values in `indices` indicate positional indices
from the right (the default). This is similar to :func:`numpy.take`.

* True : negative values in `indices` indicate
* True: negative values in `indices` indicate
missing values. These values are set to `fill_value`. Any other
other negative values raise a ``ValueError``.

Expand Down
2 changes: 1 addition & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
def remove_na(arr):
"""Remove null values from array like structure.

.. deprecated :: 0.21.0
.. deprecated:: 0.21.0
Use s[s.notnull()] instead.
"""

Expand Down
16 changes: 8 additions & 8 deletions pandas/io/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,15 +1647,15 @@ def _style_to_xlwt(cls, item, firstlevel=True, field_sep=',',
for example:

hstyle = {"font": {"bold": True},
"border" : {"top": "thin",
"right": "thin",
"bottom": "thin",
"left": "thin"},
"align" : {"horiz": "center"}}
"border": {"top": "thin",
"right": "thin",
"bottom": "thin",
"left": "thin"},
"align": {"horiz": "center"}}
will be converted to
font : bold on; \
border : top thin, right thin, bottom thin, left thin; \
align : horiz center;
font: bold on; \
border: top thin, right thin, bottom thin, left thin; \
align: horiz center;
"""
if hasattr(item, 'items'):
if firstlevel:
Expand Down
8 changes: 4 additions & 4 deletions pandas/plotting/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,12 +685,12 @@ def _parse_errorbars(self, label, err):
or return the error DataFrame/dict

Error bars can be specified in several ways:
Series : the user provides a pandas.Series object of the same
Series: the user provides a pandas.Series object of the same
length as the data
ndarray : provides a np.ndarray of the same length as the data
DataFrame/dict : error values are paired with keys matching the
ndarray: provides a np.ndarray of the same length as the data
DataFrame/dict: error values are paired with keys matching the
key in the plotted DataFrame
str : the name of the column within the plotted DataFrame
str: the name of the column within the plotted DataFrame
"""

if err is None:
Expand Down
6 changes: 3 additions & 3 deletions pandas/plotting/_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def table(ax, data, rowLabels=None, colLabels=None, **kwargs):

Parameters
----------
`ax` : Matplotlib axes object
`data` : DataFrame or Series
ax : Matplotlib axes object
data : DataFrame or Series
data for table contents
`kwargs` : keywords, optional
kwargs : keywords, optional
keyword arguments which passed to matplotlib.table.table.
If `rowLabels` or `colLabels` is not specified, data index or column
name will be used.
Expand Down