Skip to content

Commit 73d1165

Browse files
DOC: Update type of name argument in bdate_range to Hashable (pandas-dev#63383)
1 parent f4cd63d commit 73d1165

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/indexes/datetimes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ def date_range(
12801280
timezone-naive unless timezone-aware datetime-likes are passed.
12811281
normalize : bool, default False
12821282
Normalize start/end dates to midnight before generating date range.
1283-
name : str, default None
1283+
name : Hashable, default None
12841284
Name of the resulting DatetimeIndex.
12851285
inclusive : {"both", "neither", "left", "right"}, default "both"
12861286
Include boundaries; Whether to set each bound as closed or open.
@@ -1524,7 +1524,7 @@ def bdate_range(
15241524
Asia/Beijing.
15251525
normalize : bool, default False
15261526
Normalize start/end dates to midnight before generating date range.
1527-
name : str, default None
1527+
name : Hashable, default None
15281528
Name of the resulting DatetimeIndex.
15291529
weekmask : str or None, default None
15301530
Weekmask of valid business days, passed to ``numpy.busdaycalendar``,

pandas/core/indexes/timedeltas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def timedelta_range(
284284
Number of periods to generate.
285285
freq : str, Timedelta, datetime.timedelta, or DateOffset, default 'D'
286286
Frequency strings can have multiples, e.g. '5h'.
287-
name : str, default None
287+
name : Hashable, default None
288288
Name of the resulting TimedeltaIndex.
289289
closed : str, default None
290290
Make the interval closed with respect to the given frequency to

0 commit comments

Comments
 (0)