Skip to content

Commit 7051e3c

Browse files
committed
fix as recommended
1 parent 64bd51b commit 7051e3c

File tree

6 files changed

+28
-14
lines changed

6 files changed

+28
-14
lines changed

pandas/core/algorithms.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,11 @@ def unique(values):
292292
293293
The return can be:
294294
295-
- If the input is an Index, the return is an Index.
296-
- If the input is a Categorical dtype, the return is a Categorical.
297-
- If the input is a Series/ndarray, the return will be an ndarray.
295+
* Index : when the input is an Index
296+
* Categorical : when the input is a Categorical dtype
297+
* ndarray : when the input is a Series/ndarray
298+
299+
Return numpy.ndarray or ExtensionArray
298300
299301
See Also
300302
--------

pandas/core/frame.py

+1
Original file line numberDiff line numberDiff line change
@@ -6955,6 +6955,7 @@ def corr(self, method='pearson', min_periods=1):
69556955
* spearman : Spearman rank correlation
69566956
* callable: callable with input two 1d ndarrays
69576957
and returning a float
6958+
69586959
.. versionadded:: 0.24.0
69596960
69606961
min_periods : int, optional

pandas/core/generic.py

+13-8
Original file line numberDiff line numberDiff line change
@@ -2807,21 +2807,25 @@ def to_latex(self, buf=None, columns=None, col_space=None, header=True,
28072807
defaults to 'ascii' on Python 2 and 'utf-8' on Python 3.
28082808
decimal : str, default '.'
28092809
Character recognized as decimal separator, e.g. ',' in Europe.
2810+
28102811
.. versionadded:: 0.18.0
28112812
multicolumn : bool, default True
28122813
Use \multicolumn to enhance MultiIndex columns.
28132814
The default will be read from the config module.
2815+
28142816
.. versionadded:: 0.20.0
28152817
multicolumn_format : str, default 'l'
28162818
The alignment for multicolumns, similar to `column_format`
28172819
The default will be read from the config module.
2820+
28182821
.. versionadded:: 0.20.0
28192822
multirow : bool, default False
28202823
Use \multirow to enhance MultiIndex rows. Requires adding a
28212824
\usepackage{multirow} to your LaTeX preamble. Will print
28222825
centered labels (instead of top-aligned) across the contained
28232826
rows, separating groups via clines. The default will be read
28242827
from the pandas config module.
2828+
28252829
.. versionadded:: 0.20.0
28262830
28272831
Returns
@@ -4948,15 +4952,15 @@ def pipe(self, func, *args, **kwargs):
49484952
49494953
Returns
49504954
-------
4951-
DataFrame, Series or scalar
4955+
scalar, Series or DataFrame
49524956
49534957
The return can be:
49544958
4955-
- If DataFrame.agg is called with a single function, returns a Series.
4956-
- If DataFrame.agg is called with several functions, returns
4957-
a DataFrame.
4958-
- If Series.agg is called with single function, returns a scalar.
4959-
- If Series.agg is called with several functions, returns a Series.
4959+
* scalar : when Series.agg is called with single function
4960+
* Series : when DataFrame.agg is called with a single function
4961+
* DataFrame : when DataFrame.agg is called with several functions
4962+
4963+
Return scalar, Series or DataFrame.
49604964
49614965
%(see_also)s
49624966
@@ -6885,12 +6889,13 @@ def asof(self, where, subset=None):
68856889
68866890
The return can be:
68876891
6888-
* Scalar : when `self` is a Series and `where` is a scalar
6892+
* scalar : when `self` is a Series and `where` is a scalar
68896893
* Series: when `self` is a Series and `where` is an array-like,
68906894
or when `self` is a DataFrame and `where` is a scalar
68916895
* DataFrame : when `self` is a DataFrame and `where` is an
68926896
array-like
6893-
Return scalar, Sereis, or DataFrame.
6897+
6898+
Return scalar, Series, or DataFrame.
68946899
68956900
See Also
68966901
--------

pandas/core/indexes/base.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -2972,8 +2972,11 @@ def _convert_listlike_indexer(self, keyarr, kind=None):
29722972
Returns
29732973
-------
29742974
indexer, keyarr
2975-
indexer is an ndarray or None if cannot convert
2976-
keyarr are tuple-safe keys.
2975+
The return can be:
2976+
- indexer : an ndarray or None if cannot convert
2977+
- keyarr : tuple-safe keys
2978+
2979+
Return indexer, keyarr.
29772980
"""
29782981
if isinstance(keyarr, Index):
29792982
keyarr = self._convert_index_indexer(keyarr)

pandas/core/series.py

+1
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,7 @@ def unique(self):
16681668
* Interval
16691669
* Sparse
16701670
* IntegerNA
1671+
16711672
See Examples section.
16721673
16731674
Examples

pandas/io/excel/_base.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ class ExcelWriter(object):
508508
Format string for datetime objects written into Excel files
509509
(e.g. 'YYYY-MM-DD HH:MM:SS')
510510
mode : {'w' or 'a'}, default 'w'
511-
File mode to use (write or append). .. versionadded:: 0.24.0
511+
File mode to use (write or append).
512+
513+
.. versionadded:: 0.24.0
512514
513515
Attributes
514516
----------

0 commit comments

Comments
 (0)