Skip to content

Commit c514ce1

Browse files
committed
1 parent 50e23e7 commit c514ce1

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

pandas/core/frame.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,15 @@
337337
to SQL left anti join; preserve key order.
338338
* right_anti: use only keys from right frame that are not in left frame, similar
339339
to SQL right anti join; preserve key order.
340-
on : label or list
340+
on : Hashable or a sequence of the previous
341341
Column or index level names to join on. These must be found in both
342342
DataFrames. If `on` is None and not merging on indexes then this defaults
343343
to the intersection of the columns in both DataFrames.
344-
left_on : label or list, or array-like
344+
left_on : Hashable or a sequence of the previous, or array-like
345345
Column or index level names to join on in the left DataFrame. Can also
346346
be an array or list of arrays of the length of the left DataFrame.
347347
These arrays are treated as if they are columns.
348-
right_on : label or list, or array-like
348+
right_on : Hashable or a sequence of the previous, or array-like
349349
Column or index level names to join on in the right DataFrame. Can also
350350
be an array or list of arrays of the length of the right DataFrame.
351351
These arrays are treated as if they are columns.
@@ -7395,7 +7395,7 @@ def value_counts(
73957395
73967396
Parameters
73977397
----------
7398-
subset : label or list of labels, optional
7398+
subset : Hashable or a sequence of the previous, optional
73997399
Columns to use when counting unique combinations.
74007400
normalize : bool, default False
74017401
Return proportions rather than frequencies.
@@ -7546,7 +7546,7 @@ def nlargest(
75467546
----------
75477547
n : int
75487548
Number of rows to return.
7549-
columns : label or list of labels
7549+
columns : Hashable or a sequence of the previous
75507550
Column label(s) to order by.
75517551
keep : {'first', 'last', 'all'}, default 'first'
75527552
Where there are duplicate values:

pandas/core/indexes/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,12 +1913,12 @@ def set_names(self, names, *, level=None, inplace: bool = False) -> Self | None:
19131913
Parameters
19141914
----------
19151915
1916-
names : label or list of label or dict-like for MultiIndex
1916+
names : Hashable or a sequence of the previous or dict-like for MultiIndex
19171917
Name(s) to set.
19181918
19191919
.. versionchanged:: 1.3.0
19201920
1921-
level : int, label or list of int or label, optional
1921+
level : int, Hashable or a sequence of the previous, optional
19221922
If the index is a MultiIndex and names is not dict-like, level(s) to set
19231923
(None for all levels). Otherwise level must be None.
19241924
@@ -2023,7 +2023,7 @@ def rename(self, name, *, inplace: bool = False) -> Self | None:
20232023
20242024
Parameters
20252025
----------
2026-
name : label or list of labels
2026+
name : Hashable or a sequence of the previous
20272027
Name(s) to set.
20282028
inplace : bool, default False
20292029
Modifies the object directly, instead of creating a new Index or

pandas/core/reshape/merge.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ def merge(
198198
to SQL left anti join; preserve key order.
199199
* right_anti: use only keys from right frame that are not in left frame, similar
200200
to SQL right anti join; preserve key order.
201-
on : label or list
201+
on : Hashable or a sequence of the previous
202202
Column or index level names to join on. These must be found in both
203203
DataFrames. If `on` is None and not merging on indexes then this defaults
204204
to the intersection of the columns in both DataFrames.
205-
left_on : label or list, or array-like
205+
left_on : Hashable or a sequence of the previous, or array-like
206206
Column or index level names to join on in the left DataFrame. Can also
207207
be an array or list of arrays of the length of the left DataFrame.
208208
These arrays are treated as if they are columns.
209-
right_on : label or list, or array-like
209+
right_on : Hashable or a sequence of the previous, or array-like
210210
Column or index level names to join on in the right DataFrame. Can also
211211
be an array or list of arrays of the length of the right DataFrame.
212212
These arrays are treated as if they are columns.
@@ -536,13 +536,13 @@ def merge_ordered(
536536
First pandas object to merge.
537537
right : DataFrame or named Series
538538
Second pandas object to merge.
539-
on : label or list
539+
on : Hashable or a sequence of the previous
540540
Field names to join on. Must be found in both DataFrames.
541-
left_on : label or list, or array-like
541+
left_on : Hashable or a sequence of the previous, or array-like
542542
Field names to join on in left DataFrame. Can be a vector or list of
543543
vectors of the length of the DataFrame to use a particular vector as
544544
the join key instead of columns.
545-
right_on : label or list, or array-like
545+
right_on : Hashable or a sequence of the previous, or array-like
546546
Field names to join on in right DataFrame or vector/list of vectors per
547547
left_on docs.
548548
left_by : column name or list of column names

0 commit comments

Comments
 (0)