diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index ce6ea1ed980dd..d0faa1975773d 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1087,10 +1087,11 @@ def bdate_range( Notes ----- - Of the four parameters: ``start``, ``end``, ``periods``, and ``freq``, - exactly three must be specified. Specifying ``freq`` is a requirement - for ``bdate_range``. Use ``date_range`` if specifying ``freq`` is not - desired. + Of the four parameters ``start``, ``end``, ``periods``, and ``freq``, + at least two and at most three must be specified. You cannot specify + all four parameters together. If ``freq`` is omitted, the resulting + ``DatetimeIndex`` will have ``periods`` linearly spaced elements between + ``start`` and ``end`` (closed on both sides). To learn more about the frequency strings, please see :ref:`this link`. @@ -1137,4 +1138,4 @@ def bdate_range( def _time_to_micros(time_obj: dt.time) -> int: seconds = time_obj.hour * 60 * 60 + 60 * time_obj.minute + time_obj.second - return 1_000_000 * seconds + time_obj.microsecond + return 1_000_000 * seconds + time_obj.microsecond \ No newline at end of file