Skip to content

Commit 71a6a69

Browse files
bk521234Pingviinituutti
authored andcommitted
DOC: Fixing spaces before non param colons in docstrings (pandas-dev#23805)
1 parent 2cef406 commit 71a6a69

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

pandas/core/algorithms.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,8 @@ def rank(values, axis=0, method='average', na_option='keep',
856856
The method by which tiebreaks are broken during the ranking.
857857
na_option : {'keep', 'top'}, default 'keep'
858858
The method by which NaNs are placed in the ranking.
859-
- ``keep`` : rank each NaN value with a NaN ranking
860-
- ``top`` : replace each NaN with either +/- inf so that they
859+
- ``keep``: rank each NaN value with a NaN ranking
860+
- ``top``: replace each NaN with either +/- inf so that they
861861
there are ranked at the top
862862
ascending : boolean, default True
863863
Whether or not the elements should be ranked in ascending order.
@@ -1473,10 +1473,10 @@ def take(arr, indices, axis=0, allow_fill=False, fill_value=None):
14731473
allow_fill : bool, default False
14741474
How to handle negative values in `indices`.
14751475
1476-
* False : negative values in `indices` indicate positional indices
1476+
* False: negative values in `indices` indicate positional indices
14771477
from the right (the default). This is similar to :func:`numpy.take`.
14781478
1479-
* True : negative values in `indices` indicate
1479+
* True: negative values in `indices` indicate
14801480
missing values. These values are set to `fill_value`. Any other
14811481
other negative values raise a ``ValueError``.
14821482

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
def remove_na(arr):
7878
"""Remove null values from array like structure.
7979
80-
.. deprecated :: 0.21.0
80+
.. deprecated:: 0.21.0
8181
Use s[s.notnull()] instead.
8282
"""
8383

pandas/io/excel.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -1647,15 +1647,15 @@ def _style_to_xlwt(cls, item, firstlevel=True, field_sep=',',
16471647
for example:
16481648
16491649
hstyle = {"font": {"bold": True},
1650-
"border" : {"top": "thin",
1651-
"right": "thin",
1652-
"bottom": "thin",
1653-
"left": "thin"},
1654-
"align" : {"horiz": "center"}}
1650+
"border": {"top": "thin",
1651+
"right": "thin",
1652+
"bottom": "thin",
1653+
"left": "thin"},
1654+
"align": {"horiz": "center"}}
16551655
will be converted to
1656-
font : bold on; \
1657-
border : top thin, right thin, bottom thin, left thin; \
1658-
align : horiz center;
1656+
font: bold on; \
1657+
border: top thin, right thin, bottom thin, left thin; \
1658+
align: horiz center;
16591659
"""
16601660
if hasattr(item, 'items'):
16611661
if firstlevel:

pandas/plotting/_core.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -685,12 +685,12 @@ def _parse_errorbars(self, label, err):
685685
or return the error DataFrame/dict
686686
687687
Error bars can be specified in several ways:
688-
Series : the user provides a pandas.Series object of the same
688+
Series: the user provides a pandas.Series object of the same
689689
length as the data
690-
ndarray : provides a np.ndarray of the same length as the data
691-
DataFrame/dict : error values are paired with keys matching the
690+
ndarray: provides a np.ndarray of the same length as the data
691+
DataFrame/dict: error values are paired with keys matching the
692692
key in the plotted DataFrame
693-
str : the name of the column within the plotted DataFrame
693+
str: the name of the column within the plotted DataFrame
694694
"""
695695

696696
if err is None:

pandas/plotting/_tools.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def table(ax, data, rowLabels=None, colLabels=None, **kwargs):
3030
3131
Parameters
3232
----------
33-
`ax` : Matplotlib axes object
34-
`data` : DataFrame or Series
33+
ax : Matplotlib axes object
34+
data : DataFrame or Series
3535
data for table contents
36-
`kwargs` : keywords, optional
36+
kwargs : keywords, optional
3737
keyword arguments which passed to matplotlib.table.table.
3838
If `rowLabels` or `colLabels` is not specified, data index or column
3939
name will be used.

0 commit comments

Comments
 (0)