Skip to content

Commit 7a58da3

Browse files
HughKelleyMateusz Górski
authored and
Mateusz Górski
committed
Pr09 batch 3 (pandas-dev#29434)
1 parent 5f20766 commit 7a58da3

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

pandas/_libs/lib.pyx

+5-4
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def is_scalar(val: object) -> bool:
125125
- Interval
126126
- DateOffset
127127
- Fraction
128-
- Number
128+
- Number.
129129

130130
Returns
131131
-------
@@ -867,9 +867,10 @@ def is_list_like(obj: object, allow_sets: bool = True):
867867
868868
Parameters
869869
----------
870-
obj : The object to check
871-
allow_sets : boolean, default True
872-
If this parameter is False, sets will not be considered list-like
870+
obj : object
871+
The object to check.
872+
allow_sets : bool, default True
873+
If this parameter is False, sets will not be considered list-like.
873874
874875
.. versionadded:: 0.24.0
875876

pandas/core/arrays/interval.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ def _from_factorized(cls, values, original):
260260
Whether the intervals are closed on the left-side, right-side, both
261261
or neither.
262262
copy : bool, default False
263-
copy the data
263+
Copy the data.
264264
dtype : dtype or None, default None
265-
If None, dtype will be inferred
265+
If None, dtype will be inferred.
266266
267267
.. versionadded:: 0.23.0
268268
@@ -383,16 +383,16 @@ def from_arrays(cls, left, right, closed="right", copy=False, dtype=None):
383383
Parameters
384384
----------
385385
data : array-like (1-dimensional)
386-
Array of tuples
386+
Array of tuples.
387387
closed : {'left', 'right', 'both', 'neither'}, default 'right'
388388
Whether the intervals are closed on the left-side, right-side, both
389389
or neither.
390390
copy : bool, default False
391-
by-default copy the data, this is compat only and ignored
391+
By-default copy the data, this is compat only and ignored.
392392
dtype : dtype or None, default None
393-
If None, dtype will be inferred
393+
If None, dtype will be inferred.
394394
395-
..versionadded:: 0.23.0
395+
.. versionadded:: 0.23.0
396396
397397
Returns
398398
-------

pandas/core/dtypes/concat.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,14 @@ def concat_categorical(to_concat, axis=0):
185185

186186
def union_categoricals(to_union, sort_categories=False, ignore_order=False):
187187
"""
188-
Combine list-like of Categorical-like, unioning categories. All
189-
categories must have the same dtype.
188+
Combine list-like of Categorical-like, unioning categories.
189+
190+
All categories must have the same dtype.
190191
191192
Parameters
192193
----------
193-
to_union : list-like of Categorical, CategoricalIndex,
194-
or Series with dtype='category'
194+
to_union : list-like
195+
Categorical, CategoricalIndex, or Series with dtype='category'.
195196
sort_categories : bool, default False
196197
If true, resulting categories will be lexsorted, otherwise
197198
they will be ordered as they appear in the data.
@@ -201,7 +202,7 @@ def union_categoricals(to_union, sort_categories=False, ignore_order=False):
201202
202203
Returns
203204
-------
204-
result : Categorical
205+
Categorical
205206
206207
Raises
207208
------

pandas/core/resample.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def pad(self, limit=None):
441441
Parameters
442442
----------
443443
limit : int, optional
444-
limit of how many values to fill
444+
Limit of how many values to fill.
445445
446446
Returns
447447
-------
@@ -856,7 +856,7 @@ def var(self, ddof=1, *args, **kwargs):
856856
Parameters
857857
----------
858858
ddof : int, default 1
859-
degrees of freedom
859+
Degrees of freedom.
860860
861861
Returns
862862
-------
@@ -1237,11 +1237,11 @@ def _upsample(self, method, limit=None, fill_value=None):
12371237
Parameters
12381238
----------
12391239
method : string {'backfill', 'bfill', 'pad', 'ffill'}
1240-
method for upsampling
1240+
Method for upsampling.
12411241
limit : int, default None
1242-
Maximum size gap to fill when reindexing
1242+
Maximum size gap to fill when reindexing.
12431243
fill_value : scalar, default None
1244-
Value to use for missing values
1244+
Value to use for missing values.
12451245
12461246
See Also
12471247
--------

pandas/io/html.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ def read_html(
960960
This value is converted to a regular expression so that there is
961961
consistent behavior between Beautiful Soup and lxml.
962962
963-
flavor : str or None, container of strings
963+
flavor : str or None
964964
The parsing engine to use. 'bs4' and 'html5lib' are synonymous with
965965
each other, they are both there for backwards compatibility. The
966966
default of ``None`` tries to use ``lxml`` to parse and if that fails it
@@ -974,7 +974,7 @@ def read_html(
974974
The column (or list of columns) to use to create the index.
975975
976976
skiprows : int or list-like or slice or None, optional
977-
0-based. Number of rows to skip after parsing the column integer. If a
977+
Number of rows to skip after parsing the column integer. 0-based. If a
978978
sequence of integers or a slice is given, will skip the rows indexed by
979979
that sequence. Note that a single element sequence means 'skip the nth
980980
row' whereas an integer means 'skip n rows'.
@@ -1024,18 +1024,19 @@ def read_html(
10241024
transformed content.
10251025
10261026
na_values : iterable, default None
1027-
Custom NA values
1027+
Custom NA values.
10281028
10291029
keep_default_na : bool, default True
10301030
If na_values are specified and keep_default_na is False the default NaN
1031-
values are overridden, otherwise they're appended to
1031+
values are overridden, otherwise they're appended to.
10321032
10331033
displayed_only : bool, default True
1034-
Whether elements with "display: none" should be parsed
1034+
Whether elements with "display: none" should be parsed.
10351035
10361036
Returns
10371037
-------
1038-
dfs : list of DataFrames
1038+
dfs
1039+
A list of DataFrames.
10391040
10401041
See Also
10411042
--------

pandas/util/testing.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -593,14 +593,14 @@ def assert_index_equal(
593593
check_less_precise : bool or int, default False
594594
Specify comparison precision. Only used when check_exact is False.
595595
5 digits (False) or 3 digits (True) after decimal points are compared.
596-
If int, then specify the digits to compare
596+
If int, then specify the digits to compare.
597597
check_exact : bool, default True
598598
Whether to compare number exactly.
599599
check_categorical : bool, default True
600600
Whether to compare internal Categorical exactly.
601601
obj : str, default 'Index'
602602
Specify object name being compared, internally used to show appropriate
603-
assertion message
603+
assertion message.
604604
"""
605605
__tracebackhide__ = True
606606

@@ -1273,10 +1273,7 @@ def assert_frame_equal(
12731273
check whether it is equivalent to 1 within the specified precision.
12741274
check_names : bool, default True
12751275
Whether to check that the `names` attribute for both the `index`
1276-
and `column` attributes of the DataFrame is identical, i.e.
1277-
1278-
* left.index.names == right.index.names
1279-
* left.columns.names == right.columns.names
1276+
and `column` attributes of the DataFrame is identical.
12801277
by_blocks : bool, default False
12811278
Specify how to compare internal data. If False, compare by columns.
12821279
If True, compare by blocks.

0 commit comments

Comments
 (0)