Skip to content

Commit 274ef6f

Browse files
meiermarkdatapythonista
authored andcommitted
DOC: Remove incorrect periods at the end of parameter types (#23600)
1 parent 383d052 commit 274ef6f

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

pandas/core/dtypes/inference.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def is_string_like(obj):
7373
7474
Parameters
7575
----------
76-
obj : The object to check.
76+
obj : The object to check
7777
7878
Examples
7979
--------
@@ -127,7 +127,7 @@ def is_iterator(obj):
127127
128128
Parameters
129129
----------
130-
obj : The object to check.
130+
obj : The object to check
131131
132132
Returns
133133
-------
@@ -172,7 +172,7 @@ def is_file_like(obj):
172172
173173
Parameters
174174
----------
175-
obj : The object to check.
175+
obj : The object to check
176176
177177
Returns
178178
-------
@@ -203,7 +203,7 @@ def is_re(obj):
203203
204204
Parameters
205205
----------
206-
obj : The object to check.
206+
obj : The object to check
207207
208208
Returns
209209
-------
@@ -227,7 +227,7 @@ def is_re_compilable(obj):
227227
228228
Parameters
229229
----------
230-
obj : The object to check.
230+
obj : The object to check
231231
232232
Returns
233233
-------
@@ -261,7 +261,7 @@ def is_list_like(obj, allow_sets=True):
261261
262262
Parameters
263263
----------
264-
obj : The object to check.
264+
obj : The object to check
265265
allow_sets : boolean, default True
266266
If this parameter is False, sets will not be considered list-like
267267
@@ -310,7 +310,7 @@ def is_array_like(obj):
310310
311311
Parameters
312312
----------
313-
obj : The object to check.
313+
obj : The object to check
314314
315315
Returns
316316
-------
@@ -343,7 +343,7 @@ def is_nested_list_like(obj):
343343
344344
Parameters
345345
----------
346-
obj : The object to check.
346+
obj : The object to check
347347
348348
Returns
349349
-------
@@ -384,7 +384,7 @@ def is_dict_like(obj):
384384
385385
Parameters
386386
----------
387-
obj : The object to check.
387+
obj : The object to check
388388
389389
Returns
390390
-------
@@ -408,7 +408,7 @@ def is_named_tuple(obj):
408408
409409
Parameters
410410
----------
411-
obj : The object to check.
411+
obj : The object to check
412412
413413
Returns
414414
-------
@@ -468,7 +468,7 @@ def is_sequence(obj):
468468
469469
Parameters
470470
----------
471-
obj : The object to check.
471+
obj : The object to check
472472
473473
Returns
474474
-------

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5248,11 +5248,11 @@ def astype(self, dtype, copy=True, errors='raise', **kwargs):
52485248
the same type. Alternatively, use {col: dtype, ...}, where col is a
52495249
column label and dtype is a numpy.dtype or Python type to cast one
52505250
or more of the DataFrame's columns to column-specific types.
5251-
copy : bool, default True.
5251+
copy : bool, default True
52525252
Return a copy when ``copy=True`` (be very careful setting
52535253
``copy=False`` as changes to values then may propagate to other
52545254
pandas objects).
5255-
errors : {'raise', 'ignore'}, default 'raise'.
5255+
errors : {'raise', 'ignore'}, default 'raise'
52565256
Control raising of exceptions on invalid data for provided dtype.
52575257
52585258
- ``raise`` : allow exceptions to be raised

pandas/core/indexes/datetimes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def to_series(self, keep_tz=False, index=None, name=None):
501501
502502
Parameters
503503
----------
504-
keep_tz : optional, defaults False.
504+
keep_tz : optional, defaults False
505505
return the data keeping the timezone.
506506
507507
If keep_tz is True:

pandas/core/indexes/multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ def sortlevel(self, level=0, ascending=True, sort_remaining=True):
18851885
ascending : boolean, default True
18861886
False to sort in descending order
18871887
Can also be a list to specify a directed ordering
1888-
sort_remaining : sort by the remaining levels after level.
1888+
sort_remaining : sort by the remaining levels after level
18891889
18901890
Returns
18911891
-------

pandas/core/indexes/range.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class RangeIndex(Int64Index):
3838
3939
Parameters
4040
----------
41-
start : int (default: 0), or other RangeIndex instance.
41+
start : int (default: 0), or other RangeIndex instance
4242
If int and "stop" is not given, interpreted as "stop" instead.
4343
stop : int (default: 0)
4444
step : int (default: 1)

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,7 @@ def reorder_levels(self, order):
30253025
30263026
Parameters
30273027
----------
3028-
order : list of int representing new level order.
3028+
order : list of int representing new level order
30293029
(reference level by number or key)
30303030
30313031
Returns

pandas/core/strings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def str_match(arr, pat, case=True, flags=0, na=np.nan):
659659
If True, case sensitive
660660
flags : int, default 0 (no flags)
661661
re module flags, e.g. re.IGNORECASE
662-
na : default NaN, fill value for missing values.
662+
na : default NaN, fill value for missing values
663663
664664
Returns
665665
-------
@@ -2665,7 +2665,7 @@ def encode(self, encoding, errors="strict"):
26652665
26662666
Parameters
26672667
----------
2668-
to_strip : str or None, default None.
2668+
to_strip : str or None, default None
26692669
Specifying the set of characters to be removed.
26702670
All combinations of this set of characters will be stripped.
26712671
If None then whitespaces are removed.

pandas/io/clipboards.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def read_clipboard(sep=r'\s+', **kwargs): # pragma: no cover
1616
1717
Parameters
1818
----------
19-
sep : str, default '\s+'.
19+
sep : str, default '\s+'
2020
A string or regex delimiter. The default of '\s+' denotes
2121
one or more whitespace characters.
2222

0 commit comments

Comments
 (0)