diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index bccbc2f861bdd..99571de85561e 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -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. diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index dd4b21ade5cf8..f9497860c00ba 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -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