Skip to content

Commit 9f94480

Browse files
authored
DOC: Small docstring clarifications (#48932)
1 parent 2ef8d14 commit 9f94480

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pandas/core/indexes/datetimes.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1170,8 +1170,9 @@ def bdate_range(
11701170
Right bound for generating dates.
11711171
periods : int, default None
11721172
Number of periods to generate.
1173-
freq : str, datetime.timedelta, or DateOffset, default 'B' (business daily)
1174-
Frequency strings can have multiples, e.g. '5H'.
1173+
freq : str, Timedelta, datetime.timedelta, or DateOffset, default 'B'
1174+
Frequency strings can have multiples, e.g. '5H'. The default is
1175+
business daily ('B').
11751176
tz : str or None
11761177
Time zone name for returning localized DatetimeIndex, for example
11771178
Asia/Beijing.

pandas/core/tools/datetimes.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,10 @@ def to_datetime(
815815
- If :const:`'julian'`, unit must be :const:`'D'`, and origin is set to
816816
beginning of Julian Calendar. Julian day number :const:`0` is assigned
817817
to the day starting at noon on January 1, 4713 BC.
818-
- If Timestamp convertible, origin is set to Timestamp identified by
819-
origin.
818+
- If Timestamp convertible (Timestamp, dt.datetime, np.datetimt64 or date
819+
string), origin is set to Timestamp identified by origin.
820+
- If a float or integer, origin is the mullisecond difference
821+
relative to 1970-01-01.
820822
cache : bool, default True
821823
If :const:`True`, use a cache of unique, converted dates to apply the
822824
datetime conversion. May produce significant speed-up when parsing

0 commit comments

Comments
 (0)