Skip to content

Commit

Permalink
DOC: Small docstring clarifications (pandas-dev#48932)
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage authored and noatamir committed Nov 9, 2022
1 parent 0c9d6ae commit 1f9c2a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,8 +1170,9 @@ def bdate_range(
Right bound for generating dates.
periods : int, default None
Number of periods to generate.
freq : str, datetime.timedelta, or DateOffset, default 'B' (business daily)
Frequency strings can have multiples, e.g. '5H'.
freq : str, Timedelta, datetime.timedelta, or DateOffset, default 'B'
Frequency strings can have multiples, e.g. '5H'. The default is
business daily ('B').
tz : str or None
Time zone name for returning localized DatetimeIndex, for example
Asia/Beijing.
Expand Down
6 changes: 4 additions & 2 deletions pandas/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,10 @@ def to_datetime(
- If :const:`'julian'`, unit must be :const:`'D'`, and origin is set to
beginning of Julian Calendar. Julian day number :const:`0` is assigned
to the day starting at noon on January 1, 4713 BC.
- If Timestamp convertible, origin is set to Timestamp identified by
origin.
- If Timestamp convertible (Timestamp, dt.datetime, np.datetimt64 or date
string), origin is set to Timestamp identified by origin.
- If a float or integer, origin is the mullisecond difference
relative to 1970-01-01.
cache : bool, default True
If :const:`True`, use a cache of unique, converted dates to apply the
datetime conversion. May produce significant speed-up when parsing
Expand Down

0 comments on commit 1f9c2a1

Please sign in to comment.