Skip to content

Commit 88318e3

Browse files
MarckKjreback
authored andcommittedFeb 4, 2019
DOC: Fix validation type error RT04 (#25107) (#25129)
1 parent d3c9d6e commit 88318e3

File tree

11 files changed

+105
-79
lines changed

11 files changed

+105
-79
lines changed
 

‎ci/code_checks.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ fi
240240
### DOCSTRINGS ###
241241
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
242242

243-
MSG='Validate docstrings (GL06, GL07, GL09, SS04, PR03, PR05, EX04)' ; echo $MSG
244-
$BASE_DIR/scripts/validate_docstrings.py --format=azure --errors=GL06,GL07,GL09,SS04,PR03,PR05,EX04
243+
MSG='Validate docstrings (GL06, GL07, GL09, SS04, PR03, PR05, EX04, RT04)' ; echo $MSG
244+
$BASE_DIR/scripts/validate_docstrings.py --format=azure --errors=GL06,GL07,GL09,SS04,PR03,PR05,EX04,RT04
245245
RET=$(($RET + $?)) ; echo $MSG "DONE"
246246

247247
fi

‎pandas/core/algorithms.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ def unique(values):
289289
Returns
290290
-------
291291
unique values.
292-
- If the input is an Index, the return is an Index
293-
- If the input is a Categorical dtype, the return is a Categorical
294-
- If the input is a Series/ndarray, the return will be an ndarray
292+
If the input is an Index, the return is an Index
293+
If the input is a Categorical dtype, the return is a Categorical
294+
If the input is a Series/ndarray, the return will be an ndarray
295295
296296
See Also
297297
--------

‎pandas/core/dtypes/common.py

+82-56
Large diffs are not rendered by default.

‎pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7767,10 +7767,10 @@ def quantile(self, q=0.5, axis=0, numeric_only=True,
77677767
-------
77687768
quantiles : Series or DataFrame
77697769
7770-
- If ``q`` is an array, a DataFrame will be returned where the
7770+
If ``q`` is an array, a DataFrame will be returned where the
77717771
index is ``q``, the columns are the columns of self, and the
77727772
values are the quantiles.
7773-
- If ``q`` is a float, a Series will be returned where the
7773+
If ``q`` is a float, a Series will be returned where the
77747774
index is the columns of self and the values are the quantiles.
77757775
77767776
See Also

‎pandas/core/generic.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -4951,10 +4951,10 @@ def pipe(self, func, *args, **kwargs):
49514951
Returns
49524952
-------
49534953
DataFrame, Series or scalar
4954-
if DataFrame.agg is called with a single function, returns a Series
4955-
if DataFrame.agg is called with several functions, returns a DataFrame
4956-
if Series.agg is called with single function, returns a scalar
4957-
if Series.agg is called with several functions, returns a Series
4954+
If DataFrame.agg is called with a single function, returns a Series
4955+
If DataFrame.agg is called with several functions, returns a DataFrame
4956+
If Series.agg is called with single function, returns a scalar
4957+
If Series.agg is called with several functions, returns a Series
49584958
49594959
%(see_also)s
49604960
@@ -6878,10 +6878,10 @@ def asof(self, where, subset=None):
68786878
-------
68796879
scalar, Series, or DataFrame
68806880
6881-
* scalar : when `self` is a Series and `where` is a scalar
6882-
* Series: when `self` is a Series and `where` is an array-like,
6881+
Scalar : when `self` is a Series and `where` is a scalar
6882+
Series: when `self` is a Series and `where` is an array-like,
68836883
or when `self` is a DataFrame and `where` is a scalar
6884-
* DataFrame : when `self` is a DataFrame and `where` is an
6884+
DataFrame : when `self` is a DataFrame and `where` is an
68856885
array-like
68866886
68876887
See Also

‎pandas/core/indexes/accessors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def to_pydatetime(self):
140140
Returns
141141
-------
142142
numpy.ndarray
143-
object dtype array containing native Python datetime objects.
143+
Object dtype array containing native Python datetime objects.
144144
145145
See Also
146146
--------
@@ -208,7 +208,7 @@ def to_pytimedelta(self):
208208
Returns
209209
-------
210210
a : numpy.ndarray
211-
1D array containing data with `datetime.timedelta` type.
211+
Array of 1D containing data with `datetime.timedelta` type.
212212
213213
See Also
214214
--------

‎pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4259,7 +4259,7 @@ def shift(self, periods=1, freq=None):
42594259
Returns
42604260
-------
42614261
pandas.Index
4262-
shifted index
4262+
Shifted index
42634263
42644264
See Also
42654265
--------

‎pandas/core/indexes/multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ def get_level_values(self, level):
13911391
Returns
13921392
-------
13931393
values : Index
1394-
``values`` is a level of this MultiIndex converted to
1394+
Values is a level of this MultiIndex converted to
13951395
a single :class:`Index` (or subclass thereof).
13961396
13971397
Examples

‎pandas/core/panel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def major_xs(self, key):
802802
Returns
803803
-------
804804
y : DataFrame
805-
index -> minor axis, columns -> items
805+
Index -> minor axis, columns -> items
806806
807807
Notes
808808
-----
@@ -826,7 +826,7 @@ def minor_xs(self, key):
826826
Returns
827827
-------
828828
y : DataFrame
829-
index -> major axis, columns -> items
829+
Index -> major axis, columns -> items
830830
831831
Notes
832832
-----

‎pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ def quantile(self, q=0.5, interpolation='linear'):
20252025
Returns
20262026
-------
20272027
quantile : float or Series
2028-
if ``q`` is an array, a Series will be returned where the
2028+
If ``q`` is an array, a Series will be returned where the
20292029
index is ``q`` and the values are the quantiles.
20302030
20312031
See Also

‎pandas/io/formats/style.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def render(self, **kwargs):
433433
Returns
434434
-------
435435
rendered : str
436-
the rendered HTML
436+
The rendered HTML
437437
438438
Notes
439439
-----
@@ -1223,7 +1223,7 @@ def from_custom_template(cls, searchpath, name):
12231223
Returns
12241224
-------
12251225
MyStyler : subclass of Styler
1226-
has the correct ``env`` and ``template`` class attributes set.
1226+
Has the correct ``env`` and ``template`` class attributes set.
12271227
"""
12281228
loader = ChoiceLoader([
12291229
FileSystemLoader(searchpath),

0 commit comments

Comments
 (0)
Please sign in to comment.