+
    xȇi              	         ^ RI Ht ^ RIt^ RIt^ RIHtHt ^ RIt^ RI	t
^ RIHtHtHtHtHt ^ RIHtHtHtHtHtHt ^ RIHt ^ RIHtHt ^ RIHt ^ R	I H!t!H"t" ^ R
I#H$t$ ^ RI%H&t& ^ RI'H(t(H)t) ^ RI*H+t+ ^ RI,H-t- ^ RI.H/t/H0t0 ^ RI1H2u H3t4 ^ RI5H6t6H7t7 ^ RI8H9t9 ^ RI:H;t; ^ RI<H=t= ]'       d#   ^ RI>H?t? ^ RI@HAtAHBtBHCtCHDtDHEtEHFtFHGtGHHtH ^ RIIHJtJHKtK ^ RIHLtL R tM];! ]/P                  ]/P                   U u. uF  p V R'9  g   K  V NK  	  up ,           ]/RR7      ];! R.]/RR7      ];! . R(O]/P                  O]/4      ]"! R4       ! R R]94      4       4       4       4       tQ]"! R4      R)R R/R! R" lll4       tR]"! R4      R*R# R$ ll4       tSR% R& ltTR# u up i )+    )annotationsN)TYPE_CHECKINGSelf)NaTPeriod	Timestampindexlib)
ResolutionTick	Timedeltaperiods_per_day	timezones	to_offset)abbrev_to_npy_unit)
DateOffsetprefix_mapping)Pandas4Warning)cache_readonly
set_module)find_stack_level)	is_scalar)
ArrowDtypeDatetimeTZDtype)	ABCSeries)is_valid_na_for_dtype)DatetimeArraytz_to_dtype)Indexmaybe_extract_name)DatetimeTimedeltaMixin)inherit_names)to_time)Hashable)DtypeDtypeObj	FrequencyIntervalClosedTypeTimeAmbiguousTimeNonexistentnptTimeUnit)	DataFramePeriodIndex)OFFSET_TO_PERIOD_FREQSTRc                   RV9   d   \        VR,          \        4      '       g   VP                  R4      p\        V\        4      '       gF   VP                  R4      pVP                  R4      p\        P                  ! V\        V4      VR7      pM<TpR F4  pWa9   g   K  W,          \        WV4      8X  g   Q hVP                  V4       K6  	  V P                  ! V3/ VB pV# \        P                  ! 4       ;_uu_ 4        \        P                  ! R4       V P                  ! V 3/ VB pRRR4       V#   + '       g   i     X# ; i)zi
This is called upon unpickling, rather than the default which doesn't
have arguments and breaks __new__
datatzfreq)dtyper3   ignoreN)r2   r3   )
isinstanceDatetimeIndexpopr   _simple_newr   getattrwarningscatch_warningssimplefilter__new__)clsdr1   r2   r3   dtakeyresults   &&      m/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/core/indexes/datetimes.py_new_DatetimeIndexrE   S   s   
 {:ai??uuV}$.. tB55=D++DBdSCC% 86WS%6666EE#J & ** M $$&& !!(+[[**F	 ' M '& Ms   ?*D33E	T)wrapis_normalized)cachepandasc            	        a  ] tR t^tt$ RtRt]tRt]	R R l4       t
R]R&   R]R&   R	]R
&   R R ltR R ltR;R R lltR<R R lltR R ltR R lt]R R l4       tR]P*                  ]P*                  RRRRRR3	R R llt]R R l4       tR  tR! R" lt]R# 4       tR$ V 3R% lltR& R' ltR=R( R) lltR* R+ ltR, V 3R- lltR. R/ lt R0 t!R1 V 3R2 llt"R>R3 lt#]	R4 R5 l4       t$R?R6 R7 llt%R@R8 R9 llt&R:t'V ;t(# )Ar7   aw  
Immutable ndarray-like of datetime64 data.

Represented internally as int64, and which can be boxed to Timestamp objects
that are subclasses of datetime and carry metadata.

.. versionchanged:: 2.0.0
    The various numeric date/time attributes (:attr:`~DatetimeIndex.day`,
    :attr:`~DatetimeIndex.month`, :attr:`~DatetimeIndex.year` etc.) now have dtype
    ``int32``. Previously they had dtype ``int64``.

Parameters
----------
data : array-like (1-dimensional)
    Datetime-like data to construct index with.
freq : str or pandas offset object, optional
    One of pandas date offset strings or corresponding objects. The string
    'infer' can be passed in order to set the frequency of the index as the
    inferred frequency upon creation.
tz : zoneinfo.ZoneInfo, pytz.timezone, dateutil.tz.tzfile, datetime.tzinfo or str
    Set the Timezone of the data.
ambiguous : 'infer', bool-ndarray, 'NaT', default 'raise'
    When clocks moved backward due to DST, ambiguous times may arise.
    For example in Central European Time (UTC+01), when going from 03:00
    DST to 02:00 non-DST, 02:30:00 local time occurs both at 00:30:00 UTC
    and at 01:30:00 UTC. In such a situation, the `ambiguous` parameter
    dictates how ambiguous times should be handled.

    - 'infer' will attempt to infer fall dst-transition hours based on
      order
    - bool-ndarray where True signifies a DST time, False signifies a
      non-DST time (note that this flag is only applicable for ambiguous
      times)
    - 'NaT' will return NaT where there are ambiguous times
    - 'raise' will raise a ValueError if there are ambiguous times.
dayfirst : bool, default False
    If True, parse dates in `data` with the day first order.
yearfirst : bool, default False
    If True parse dates in `data` with the year first order.
dtype : numpy.dtype or DatetimeTZDtype or str, default None
    Note that the only NumPy dtype allowed is `datetime64[ns]`.
copy : bool, default None
    Whether to copy input data, only relevant for array, Series, and Index
    inputs (for other input, e.g. a list, a new array is created anyway).
    Defaults to True for array input and False for Index/Series.
    Set to False to avoid copying array input at your own risk (if you
    know the input data won't be modified elsewhere).
    Set to True to force copying Series/Index up front.
name : label, default None
    Name to be stored in the index.

Attributes
----------
year
month
day
hour
minute
second
microsecond
nanosecond
date
time
timetz
dayofyear
day_of_year
dayofweek
day_of_week
weekday
quarter
tz
freq
freqstr
is_month_start
is_month_end
is_quarter_start
is_quarter_end
is_year_start
is_year_end
is_leap_year
inferred_freq

Methods
-------
normalize
strftime
snap
tz_convert
tz_localize
round
floor
ceil
to_period
to_pydatetime
to_series
to_frame
to_julian_date
month_name
day_name
mean
std

See Also
--------
Index : The base pandas Index type.
TimedeltaIndex : Index of timedelta64 data.
PeriodIndex : Index of Period data.
to_datetime : Convert argument to datetime.
date_range : Create a fixed-frequency DatetimeIndex.

Notes
-----
To learn more about the frequency strings, please see
:ref:`this link<timeseries.offset_aliases>`.

Examples
--------
>>> idx = pd.DatetimeIndex(["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"])
>>> idx
DatetimeIndex(['2020-01-01 10:00:00+00:00', '2020-02-01 11:00:00+00:00'],
dtype='datetime64[us, UTC]', freq=None)
datetimeindexTc                   V ^8  d   QhRR/# )   returnztype[libindex.DatetimeEngine] )formats   "rD   __annotate__DatetimeIndex.__annotate__  s     ' '; '    c                	"    \         P                  # N)libindexDatetimeEngineselfs   &rD   _engine_typeDatetimeIndex._engine_type  s    &&&rS   r   _data_valueszdt.tzinfo | Noner2   c                   V ^8  d   QhRR/# rM   rN   r   rO   )rP   s   "rD   rQ   rR     s     ,G ,Gu ,GrS   c                |    V P                   P                  V4      p\        W P                  VP                  RR7      # )a  
Convert to Index using specified date_format.

Return an Index of formatted strings specified by date_format, which
supports the same string format as the python standard library. Details
of the string format can be found in `python string format
doc <https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior>`__.

Formats supported by the C `strftime` API but not by the python string format
doc (such as `"%R"`, `"%r"`) are not officially supported and should be
preferably replaced with their supported equivalents (such as `"%H:%M"`,
`"%I:%M:%S %p"`).
Note that `PeriodIndex` support additional directives, detailed in
`Period.strftime`.

Parameters
----------
date_format : str
    Date format string (e.g. "%Y-%m-%d").

Returns
-------
ndarray[object]
    NumPy ndarray of formatted strings.

See Also
--------
to_datetime : Convert the given argument to datetime.
DatetimeIndex.normalize : Return DatetimeIndex with times to midnight.
DatetimeIndex.round : Round the DatetimeIndex to the specified freq.
DatetimeIndex.floor : Floor the DatetimeIndex to the specified freq.
Timestamp.strftime : Format a single Timestamp.
Period.strftime : Format a single Period.

Examples
--------
>>> rng = pd.date_range(pd.Timestamp("2018-03-10 09:00"), periods=3, freq="s")
>>> rng.strftime("%B %d, %Y, %r")
Index(['March 10, 2018, 09:00:00 AM', 'March 10, 2018, 09:00:01 AM',
       'March 10, 2018, 09:00:02 AM'],
            dtype='str')
F)namer4   copy)r\   strftimer   ra   r4   )rY   date_formatarrs   && rD   rc   DatetimeIndex.strftime  s0    V jj!!+.Syy		FFrS   c                   V ^8  d   QhRR/# )rM   rN   r   rO   )rP   s   "rD   rQ   rR   H  s     DR DR DRrS   c                    V P                   P                  V4      p\        V 4      P                  W P                  V P
                  R7      # )a  
Convert tz-aware Datetime Array/Index from one time zone to another.

Parameters
----------
tz : str, zoneinfo.ZoneInfo, pytz.timezone, dateutil.tz.tzfile, datetime.tzinfo or None
    Time zone for time. Corresponding timestamps would be converted
    to this time zone of the Datetime Array/Index. A `tz` of None will
    convert to UTC and remove the timezone information.

Returns
-------
Array or Index
    Datetme Array/Index with target `tz`.

Raises
------
TypeError
    If Datetime Array/Index is tz-naive.

See Also
--------
DatetimeIndex.tz : A timezone that has a variable offset from UTC.
DatetimeIndex.tz_localize : Localize tz-naive DatetimeIndex to a
    given time zone, or remove timezone from a tz-aware DatetimeIndex.

Examples
--------
With the `tz` parameter, we can change the DatetimeIndex
to other time zones:

>>> dti = pd.date_range(
...     start="2014-08-01 09:00", freq="h", periods=3, tz="Europe/Berlin"
... )

>>> dti
DatetimeIndex(['2014-08-01 09:00:00+02:00',
               '2014-08-01 10:00:00+02:00',
               '2014-08-01 11:00:00+02:00'],
              dtype='datetime64[us, Europe/Berlin]', freq='h')

>>> dti.tz_convert("US/Central")
DatetimeIndex(['2014-08-01 02:00:00-05:00',
               '2014-08-01 03:00:00-05:00',
               '2014-08-01 04:00:00-05:00'],
              dtype='datetime64[us, US/Central]', freq='h')

With the ``tz=None``, we can remove the timezone (after converting
to UTC if necessary):

>>> dti = pd.date_range(
...     start="2014-08-01 09:00", freq="h", periods=3, tz="Europe/Berlin"
... )

>>> dti
DatetimeIndex(['2014-08-01 09:00:00+02:00',
               '2014-08-01 10:00:00+02:00',
               '2014-08-01 11:00:00+02:00'],
                dtype='datetime64[us, Europe/Berlin]', freq='h')

>>> dti.tz_convert(None)
DatetimeIndex(['2014-08-01 07:00:00',
               '2014-08-01 08:00:00',
               '2014-08-01 09:00:00'],
                dtype='datetime64[us]', freq='h')
ra   refs)r\   
tz_converttyper9   ra   _references)rY   r2   re   s   && rD   rk   DatetimeIndex.tz_convertH  s=    F jj##B'Dz%%c		@P@P%QQrS   raisec               $    V ^8  d   QhRRRRRR/# )rM   	ambiguousr)   nonexistentr*   rN   r   rO   )rP   s   "rD   rQ   rR     s/     R; R; !R; %	R;
 
R;rS   c                    V P                   P                  WV4      p\        V 4      P                  W@P                  R7      # )aL  
Localize tz-naive Datetime Array/Index to tz-aware Datetime Array/Index.

This method takes a time zone (tz) naive Datetime Array/Index object
and makes this time zone aware. It does not move the time to another
time zone.

This method can also be used to do the inverse -- to create a time
zone unaware object from an aware object. To that end, pass `tz=None`.

Parameters
----------
tz : str, zoneinfo.ZoneInfo,, pytz.timezone, dateutil.tz.tzfile, datetime.tzinfo or None
    Time zone to convert timestamps to. Passing ``None`` will
    remove the time zone information preserving local time.
ambiguous : 'infer', 'NaT', bool array, default 'raise'
    When clocks moved backward due to DST, ambiguous times may arise.
    For example in Central European Time (UTC+01), when going from
    03:00 DST to 02:00 non-DST, 02:30:00 local time occurs both at
    00:30:00 UTC and at 01:30:00 UTC. In such a situation, the
    `ambiguous` parameter dictates how ambiguous times should be
    handled.

    - 'infer' will attempt to infer fall dst-transition hours based on
      order
    - bool-ndarray where True signifies a DST time, False signifies a
      non-DST time (note that this flag is only applicable for
      ambiguous times)
    - 'NaT' will return NaT where there are ambiguous times
    - 'raise' will raise a ValueError if there are ambiguous
      times.

nonexistent : 'shift_forward', 'shift_backward, 'NaT', timedelta,         default 'raise'
    A nonexistent time does not exist in a particular timezone
    where clocks moved forward due to DST.

    - 'shift_forward' will shift the nonexistent time forward to the
      closest existing time
    - 'shift_backward' will shift the nonexistent time backward to the
      closest existing time
    - 'NaT' will return NaT where there are nonexistent times
    - timedelta objects will shift nonexistent times by the timedelta
    - 'raise' will raise a ValueError if there are
      nonexistent times.

Returns
-------
Same type as self
    Array/Index converted to the specified time zone.

Raises
------
TypeError
    If the Datetime Array/Index is tz-aware and tz is not None.

See Also
--------
DatetimeIndex.tz_convert : Convert tz-aware DatetimeIndex from
    one time zone to another.

Examples
--------
>>> tz_naive = pd.date_range('2018-03-01 09:00', periods=3)
>>> tz_naive
DatetimeIndex(['2018-03-01 09:00:00', '2018-03-02 09:00:00',
               '2018-03-03 09:00:00'],
              dtype='datetime64[us]', freq='D')

Localize DatetimeIndex in US/Eastern time zone:

>>> tz_aware = tz_naive.tz_localize(tz='US/Eastern')
>>> tz_aware
DatetimeIndex(['2018-03-01 09:00:00-05:00',
               '2018-03-02 09:00:00-05:00',
               '2018-03-03 09:00:00-05:00'],
              dtype='datetime64[us, US/Eastern]', freq=None)

With the ``tz=None``, we can remove the time zone information
while keeping the local time (not converted to UTC):

>>> tz_aware.tz_localize(None)
DatetimeIndex(['2018-03-01 09:00:00', '2018-03-02 09:00:00',
               '2018-03-03 09:00:00'],
              dtype='datetime64[us]', freq=None)

Be careful with DST changes. When there is sequential data, pandas can
infer the DST time:

>>> s = pd.to_datetime(pd.Series(['2018-10-28 01:30:00',
...                               '2018-10-28 02:00:00',
...                               '2018-10-28 02:30:00',
...                               '2018-10-28 02:00:00',
...                               '2018-10-28 02:30:00',
...                               '2018-10-28 03:00:00',
...                               '2018-10-28 03:30:00']))
>>> s.dt.tz_localize('CET', ambiguous='infer')
0   2018-10-28 01:30:00+02:00
1   2018-10-28 02:00:00+02:00
2   2018-10-28 02:30:00+02:00
3   2018-10-28 02:00:00+01:00
4   2018-10-28 02:30:00+01:00
5   2018-10-28 03:00:00+01:00
6   2018-10-28 03:30:00+01:00
dtype: datetime64[us, CET]

In some cases, inferring the DST is impossible. In such cases, you can
pass an ndarray to the ambiguous parameter to set the DST explicitly

>>> s = pd.to_datetime(pd.Series(['2018-10-28 01:20:00',
...                               '2018-10-28 02:36:00',
...                               '2018-10-28 03:46:00']))
>>> s.dt.tz_localize('CET', ambiguous=np.array([True, True, False]))
0   2018-10-28 01:20:00+02:00
1   2018-10-28 02:36:00+02:00
2   2018-10-28 03:46:00+01:00
dtype: datetime64[us, CET]

If the DST transition causes nonexistent times, you can shift these
dates forward or backwards with a timedelta object or `'shift_forward'`
or `'shift_backwards'`.

>>> s = pd.to_datetime(pd.Series(['2015-03-29 02:30:00',
...                               '2015-03-29 03:30:00'], dtype="M8[ns]"))
>>> s.dt.tz_localize('Europe/Warsaw', nonexistent='shift_forward')
0   2015-03-29 03:00:00+02:00
1   2015-03-29 03:30:00+02:00
dtype: datetime64[ns, Europe/Warsaw]

>>> s.dt.tz_localize('Europe/Warsaw', nonexistent='shift_backward')
0   2015-03-29 01:59:59.999999999+01:00
1   2015-03-29 03:30:00+02:00
dtype: datetime64[ns, Europe/Warsaw]

>>> s.dt.tz_localize('Europe/Warsaw', nonexistent=pd.Timedelta('1h'))
0   2015-03-29 03:30:00+02:00
1   2015-03-29 03:30:00+02:00
dtype: datetime64[ns, Europe/Warsaw]
ra   )r\   tz_localizerl   r9   ra   )rY   r2   rq   rr   re   s   &&&& rD   ru   DatetimeIndex.tz_localize  s7    b jj$$RK@Dz%%c		%::rS   Nc                   V ^8  d   QhRR/# )rM   rN   r.   rO   )rP   s   "rD   rQ   rR   "  s     6< 6<k 6<rS   c                ~    ^ RI Hp V P                  P                  V4      pVP                  ! W0P
                  R7      # )a  
Cast to PeriodArray/PeriodIndex at a particular frequency.

Converts DatetimeArray/Index to PeriodArray/PeriodIndex.

Parameters
----------
freq : str or Period, optional
    One of pandas' :ref:`period aliases <timeseries.period_aliases>`
    or a Period object. Will be inferred by default.

Returns
-------
PeriodArray/PeriodIndex
    Immutable ndarray holding ordinal values at a particular frequency.

Raises
------
ValueError
    When converting a DatetimeArray/Index with non-regular values,
    so that a frequency cannot be inferred.

See Also
--------
PeriodIndex: Immutable ndarray holding ordinal values.
DatetimeIndex.to_pydatetime: Return DatetimeIndex as object.

Examples
--------
>>> df = pd.DataFrame(
...     {"y": [1, 2, 3]},
...     index=pd.to_datetime(
...         [
...             "2000-03-31 00:00:00",
...             "2000-05-31 00:00:00",
...             "2000-08-31 00:00:00",
...         ]
...     ),
... )
>>> df.index.to_period("M")
PeriodIndex(['2000-03', '2000-05', '2000-08'],
            dtype='period[M]')

Infer the daily frequency

>>> idx = pd.date_range("2017-01-01", periods=2)
>>> idx.to_period()
PeriodIndex(['2017-01-01', '2017-01-02'],
            dtype='period[D]')
)r.   rt   )pandas.core.indexes.apir.   r\   	to_periodr9   ra   )rY   r3   r.   re   s   &&  rD   rz   DatetimeIndex.to_period"  s1    f 	8jj""4(&&s;;rS   c                   V ^8  d   QhRR/# r_   rO   )rP   s   "rD   rQ   rR   Z  s     6 6 6rS   c                x    V P                   P                  4       p\        P                  ! WP                  R7      # )a  
Convert TimeStamp to a Julian Date.

This method returns the number of days as a float since noon January 1, 4713 BC.

https://en.wikipedia.org/wiki/Julian_day

Returns
-------
ndarray or Index
    Float values that represent each date in Julian Calendar.

See Also
--------
Timestamp.to_julian_date : Equivalent method on ``Timestamp`` objects.

Examples
--------
>>> idx = pd.DatetimeIndex(["2028-08-12 00:54", "2028-08-12 02:06"])
>>> idx.to_julian_date()
Index([2461995.5375, 2461995.5875], dtype='float64')
rt   )r\   to_julian_dater   r9   ra   )rY   re   s   & rD   r~   DatetimeIndex.to_julian_dateZ  s+    . jj'')  9955rS   c                   V ^8  d   QhRR/# )rM   rN   r-   rO   )rP   s   "rD   rQ   rR   t  s     " "Y "rS   c                X    V P                   P                  4       pVP                  V 4      # )a  
Calculate year, week, and day according to the ISO 8601 standard.
Returns
-------
DataFrame
    With columns year, week and day.
See Also
--------
Timestamp.isocalendar : Function return a 3-tuple containing ISO year,
    week number, and weekday for the given Timestamp object.
datetime.date.isocalendar : Return a named tuple object with
    three components: year, week and weekday.

Examples
--------
>>> idx = pd.date_range(start="2019-12-29", freq="D", periods=4)
>>> idx.isocalendar()
            year  week  day
2019-12-29  2019    52    7
2019-12-30  2020     1    1
2019-12-31  2020     1    2
2020-01-01  2020     1    3
>>> idx.isocalendar().week
2019-12-29    52
2019-12-30     1
2019-12-31     1
2020-01-01     1
Freq: D, Name: week, dtype: UInt32
)r\   isocalendar	set_index)rY   dfs   & rD   r   DatetimeIndex.isocalendart  s%    < ZZ##%||D!!rS   c                   V ^8  d   QhRR/# )rM   rN   r   rO   )rP   s   "rD   rQ   rR     s     * * *rS   c                	.    V P                   P                  # rU   )r\   _resolution_objrX   s   &rD   r   DatetimeIndex._resolution_obj  s    zz)))rS   Fc               8    V ^8  d   QhRRRRRRRRRR	R
RRRRR/# )rM   r3   zFrequency | lib.NoDefaultrq   r)   dayfirstbool	yearfirstr4   zDtype | Nonerb   zbool | Nonera   Hashable | NonerN   r   rO   )rP   s   "rD   rQ   rR     s\     1 1 (1
 !1 1 1 1 1 1 
1rS   c
                	(   \        V4      '       d   V P                  V4       \        WV 4      p	V P                  WV4      w  r\	        V\
        4      '       dW   V\        P                  J dC   V\        P                  J d/   Vf+   V'       d   VP                  4       pV P                  WR7      # \
        P                  ! VVVVVVVVR7      p
R pV'       g)   \	        V\        \        34      '       d   VP                  pV P                  WVR7      pV# )Nrt   )r4   rb   r2   r3   r   r   rq   ri   )r   _raise_scalar_data_errorr    _maybe_copy_array_inputr6   r   r
   
no_defaultrb   r9   _from_sequence_not_strictr   r   rm   )r?   r1   r3   r2   rq   r   r   r4   rb   ra   dtarrrj   subarrs   &&&&&&&&&&   rD   r>   DatetimeIndex.__new__  s     T??((. "$c2 00UC
 t]++&cnn$ yy{??4?3377	
 
4%);<<##D=rS   c                   V ^8  d   QhRR/# rM   rN   r   rO   )rP   s   "rD   rQ   rR     s     + + +rS   c                   \        V P                  \        4      '       dP   \        V P                  4      pV\        P
                  ! ^R7      ,          \        P
                  ! ^ R7      8w  d   R# V P                  P                  # )zY
Return a boolean if we are only dates (and don't have a timezone)

Returns
-------
bool
)daysF)r6   r3   r   r   dt	timedeltar]   _is_dates_only)rY   deltas   & rD   r   DatetimeIndex._is_dates_only  sU     dii&&dii(Er||++r||/CC||***rS   c                	^    R V P                   RV P                  /p\        \        V 4      V3R3# )r1   ra   N)r\   ra   rE   rl   )rY   r@   s   & rD   
__reduce__DatetimeIndex.__reduce__  s-    TZZ3!DJ?D88rS   c                    V ^8  d   QhRRRR/# )rM   r4   r&   rN   r   rO   )rP   s   "rD   rQ   rR     s     + +( +t +rS   c                ,   \        V\        4      '       dK   VP                  R8w  d   R# VP                  pVP                  RJ V P                  RJ ,          '       d   R# R# V P                  e   \        V\
        4      # \        P                  ! VR4      # )z6
Can we compare values of the given dtype to our own?
MFNT)r6   r   kindpyarrow_dtyper2   r   r
   is_np_dtype)rY   r4   pa_dtypes   && rD   _is_comparable_dtype"DatetimeIndex._is_comparable_dtype  su     eZ((zzS **Ht#48877e_55uc**rS   c                	B   a ^ RI Hp V! V P                  R7      oV3R l# )r   )get_format_datetime64)is_dates_onlyc                   < R S! V 4       R 2# )'rO   )x	formatters   &rD   <lambda>/DatetimeIndex._formatter_func.<locals>.<lambda>  s    1Yq\N!,rS   )pandas.io.formats.formatr   r   )rY   r   r   s   & @rD   _formatter_funcDatetimeIndex._formatter_func  s     	C)8K8KL	,,rS   c                   V ^8  d   QhRR/# r   rO   )rP   s   "rD   rQ   rR   	  s     / / /rS   c                	  < V P                   eO   \        P                  ! V P                   4      '       g)   \        P                  ! V P                   4      '       g   R# VP                   eO   \        P                  ! VP                   4      '       g)   \        P                  ! VP                   4      '       g   R# \        SV `  V4      # )NF)r2   r   is_utcis_fixed_offsetsuper_can_range_setop)rY   other	__class__s   &&rD   r   DatetimeIndex._can_range_setop	  s     GG$$TWW----dgg66HH $$UXX..--ehh77w'..rS   c                   V ^8  d   QhRR/# )rM   rN   znpt.NDArray[np.int64]rO   )rP   s   "rD   rQ   rR     s      "7 rS   c                   V P                   P                  4       p\        V P                   P                  4      pW,          pV P                  R8X  d   VR,          pM_V P                  R8X  d   TpMKV P                  R8X  d   VR,          pM0V P                  R8X  d   VR,          pM\        V P                  4      hRW@P                  &   V# )zU
Return the number of microseconds since midnight.

Returns
-------
ndarray[int64_t]
nsi  usmss@B )r\   _local_timestampsr   _cresounitNotImplementedError_isnan)rY   valuesppdfracmicross   &    rD   _get_time_microsDatetimeIndex._get_time_micros  s     --/djj//0|99T\FYY$FYY$D[FYY#I%F%dii00 {{rS   c                    V ^8  d   QhRRRR/# )rM   r3   r'   rN   r7   rO   )rP   s   "rD   rQ   rR   7  s     4> 4> 4>] 4>rS   c                   \        V4      pV P                  P                  4       p\        V 4       Fn  w  r4TpVP	                  V4      '       gM   VP                  V4      pVP                  V4      p\        WV,
          4      \        Wu,
          4      8  d   TpMTpWRV&   Kp  	  \        P                  W P                  R7      # )a  
Snap time stamps to nearest occurring frequency.

Parameters
----------
freq : str, Timedelta, datetime.timedelta, or DateOffset, default 'S'
    Frequency strings can have multiples, e.g. '5h'. See
    :ref:`here <timeseries.offset_aliases>` for a list of
    frequency aliases.

Returns
-------
DatetimeIndex
    Time stamps to nearest occurring `freq`.

See Also
--------
DatetimeIndex.round : Perform round operation on the data to the
    specified `freq`.
DatetimeIndex.floor : Perform floor operation on the data to the
    specified `freq`.

Examples
--------
>>> idx = pd.DatetimeIndex(
...     ["2023-01-01", "2023-01-02", "2023-02-01", "2023-02-02"],
...     dtype="M8[ns]",
... )
>>> idx
DatetimeIndex(['2023-01-01', '2023-01-02', '2023-02-01', '2023-02-02'],
dtype='datetime64[ns]', freq=None)
>>> idx.snap("MS")
DatetimeIndex(['2023-01-01', '2023-01-01', '2023-02-01', '2023-02-01'],
dtype='datetime64[ns]', freq=None)
rt   )r   r\   rb   	enumerateis_on_offsetrollbackrollforwardabsr7   r9   ra   )rY   r3   rA   ivr   t0t1s   &&      rD   snapDatetimeIndex.snap7  s    J jjoodODAA$$Q'']]1%%%a(qv;RV,AAF $ ((99(==rS   c               $    V ^8  d   QhRRRRRR/# )rM   resor   parsedzdt.datetimerN   ztuple[Timestamp, Timestamp]rO   )rP   s   "rD   rQ   rR   p  s$     * **(3*	$*rS   c                   \         P                  ! VP                  VP                  4      p\        W#R7      pVP                  pV^,           P                  \
        P                  ! ^R4      ,
          pVP                  V P                  4      pVP                  V P                  4      pVP                  VP                  4      pVP                  VP                  4      pVP                  e   V P                  f   \        R4      hWV3# )z
Calculate datetime bounds for parsed time string and its resolution.

Parameters
----------
reso : Resolution
    Resolution provided by parsed string.
parsed : datetime
    Datetime from parsed string.

Returns
-------
lower, upper: pd.Timestamp
)r3   r   zSThe index must be timezone aware when indexing with a date string with a UTC offset)r/   getattr_abbrevr   
start_timenptimedelta64as_unitr   ru   tzinfor2   
ValueError)rY   r   r   r3   perstartends   &&&    rD   _parsed_string_to_bounds&DatetimeIndex._parsed_string_to_boundsp  s    " (++D,<,<d>N>NOV' Qw""R^^At%<<dii(kk$))$ !!&--0oofmm,==$ww ;  zrS   c                    V ^8  d   QhRRRR/# )rM   labelstrrN   ztuple[Timestamp, Resolution]rO   )rP   s   "rD   rQ   rR     s      c .J rS   c                	   < \         SV `  V4      w  r#\        V4      pV P                  e*   VP                  f   VP                  V P                  4      pW#3# rU   )r   _parse_with_resor   r2   r   ru   )rY   r   r   r   r   s   &&  rD   r   DatetimeIndex._parse_with_reso  sO    w/66"776==#8 ''0F|rS   c                   V ^8  d   QhRR/# )rM   rN   NonerO   )rP   s   "rD   rQ   rR     s     	) 	)D 	)rS   c                |     V P                   P                  V4       R#   \         d   p\        T4      ThRp?ii ; i)zE
Check for mismatched-tzawareness indexing and re-raise as KeyError.
N)r\   _assert_tzawareness_compat	TypeErrorKeyError)rY   rB   errs   && rD   _disallow_mismatched_indexing+DatetimeIndex._disallow_mismatched_indexing  s5    
	)JJ11#6 	)3-S(	)s    ;6;c                   V P                  V4       Tp\        WP                  4      '       d   \        p\	        WP
                  P                  4      '       d   V P                  V4       \        V4      pM\	        V\        4      '       dR    V P                  V4      w  r4T P                  T4       T P                  T4      '       d    T P                  YC4      # TpM\	        V\        P                   4      '       d8   \#        R\%        V 4      P&                   R\%        V4      P&                   24      h\	        V\        P(                  4      '       d   V P+                  V4      # \        V4      h \,        P.                  ! W4      #   \         d   p\        T4      ThRp?ii ; i  \         d   p\        T4      ThRp?ii ; i  \         d   p\        T4      ThRp?ii ; i)zE
Get integer location for requested label

Returns
-------
loc : int
NzCannot index z with )_check_indexing_errorr   r4   r   r6   r\   _recognized_scalarsr   r   r   r   r   r   _can_partial_date_slice_partial_date_slicer   r   r   rl   __name__timeindexer_at_timer   get_loc)rY   rB   orig_keyr   r   r   s   &&    rD   r	  DatetimeIndex.get_loc  s    	""3' jj11Cc::99::..s3C.CS!!-#44S9 ..v6++D11133DAA CR\\**T
 3 34F49;M;M:NO  RWW%%'',, 3-	.==++5  -sm,-   1"3-S01(  	.8$#-	.sH   F 
F' 2G F$FF$'G2F>>GG"GG"c                   V ^8  d   QhRR/# )rM   sider   rO   )rP   s   "rD   rQ   rR     s     "  " 3 " rS   c                j  < \        V\        P                  4      '       d_   \        V\        P                  4      '       g?   \	        V4      P                  4       p\        P                  ! R\        \        4       R7       \        SV `-  W4      pV P                  P                  V4       \	        V4      # )aY  
This function should be overloaded in subclasses that allow non-trivial
casting on label-slice bounds, e.g. datetime-like indices allowing
strings containing formatted datetimes.

Parameters
----------
label : object
side : {'left', 'right'}

Returns
-------
label : object

Notes
-----
Value of `side` parameter should be validated in caller.
zXSlicing with a datetime.date object is deprecated. Explicitly cast to Timestamp instead.
stacklevel)r6   r   datedatetimer   to_pydatetimer;   warnr   r   r   _maybe_cast_slice_boundr\   r   )rY   r   r  r   s   &&&rD   r  %DatetimeIndex._maybe_cast_slice_bound  s    ( eRWW%%j.L.L e$224EMM8+- /<

--e4rS   c                   \        V\        P                  4      '       dH   \        V\        P                  4      '       d(   Ve   V^8w  d   \        R4      hV P	                  W4      # \        V\        P                  4      '       g!   \        V\        P                  4      '       d   \        R4      hR R lpV! V4      '       g!   V! V4      '       g   V P                  '       d   \        P                  ! WW#4      # \        P                  ! R4      pRpVe0   V P                  VR4      pWp8*  pWgV 8H  P                  4       ,          pVe7   V P                  VR4      pW8*  V,          pWhV 8H  P                  4       ,          pV'       g   \        R	4      hVP                  4       ^ ,          RRV1,          p	\        V	4      \        V 4      8X  d   \        R4      # V	# )
a  
Return indexer for specified label slice.
Index.slice_indexer, customized to handle time slicing.

In addition to functionality provided by Index.slice_indexer, does the
following:

- if both `start` and `end` are instances of `datetime.time`, it
  invokes `indexer_between_time`
- if `start` and `end` are both either string or None perform
  value-based selection in non-monotonic cases.

Nz)Must have step size of 1 with time slicesz'Cannot mix time and non-time slice keysc                   V ^8  d   QhRR/# r   rO   )rP   s   "rD   rQ   1DatetimeIndex.slice_indexer.<locals>.__annotate__%  s     	D 	D 	DrS   c                D    V R J;'       d    \        V \        4      '       * # rU   )r6   r   )points   &rD   check_str_or_none6DatetimeIndex.slice_indexer.<locals>.check_str_or_none%  s    $CCZs-C)CCrS   TleftrightzcValue based partial slicing on non-monotonic DatetimeIndexes with non-existing keys is not allowed.)r6   r   r  r   indexer_between_timer   is_monotonic_increasingr   slice_indexerr   arrayr  anynonzerolenslice)
rY   r   r   stepr  maskin_indexstart_casted
end_castedindexers
   &&&&      rD   r"  DatetimeIndex.slice_indexer  s   " eRWW%%*S"''*B*BDAI !LMM,,U88eRWW%%C)A)ADEE	D e$$ %%+++&&tC>>xx~77vFL'D-2244H?55c7CJ&$.Dt+0022H9  ,,.#FdF+w<3t9$;NrS   c                   V ^8  d   QhRR/# )rM   rN   r   rO   )rP   s   "rD   rQ   rR   L  s      s rS   c                	    R # )
datetime64rO   rX   s   &rD   inferred_typeDatetimeIndex.inferred_typeK  s     rS   c                    V ^8  d   QhRRRR/# )rM   asofr   rN   npt.NDArray[np.intp]rO   )rP   s   "rD   rQ   rR   Q  s     M4 M4$ M4;O M4rS   c           	        V'       d   \        R4      h\        V\        4      '       da   ^ RIHp Tp \        V4      p V! V4      P                  4       pWQ8w  d0   \        P                  ! RV RV RV R2\        \        4       R7       VP                  '       dD   V P                  f   \        R	4      hV P                  VP                  4      P                  4       pMV P                  4       p\!        V4      pWg8H  P#                  4       ^ ,          #   \         d    Tp Li ; i  \         dC    \        P                  ! RT R2\        \        4       R7       T! T4      P                  4       p Li ; i)
a  
Return index locations of values at particular time of day.

Parameters
----------
time : datetime.time or str
    Time passed in either as object (datetime.time) or as string in
    appropriate format ("%H:%M", "%H%M", "%I:%M%p", "%I%M%p",
    "%H:%M:%S", "%H%M%S", "%I:%M:%S%p", "%I%M%S%p").
asof : bool, default False
    This parameter is currently not supported.

Returns
-------
np.ndarray[np.intp]
    Index locations of values at given `time` of day.

See Also
--------
indexer_between_time : Get index locations of values between particular
    times of day.
DataFrame.at_time : Select values at particular time of day.

Examples
--------
>>> idx = pd.DatetimeIndex(
...     ["1/1/2020 10:00", "2/1/2020 11:00", "3/1/2020 10:00"]
... )
>>> idx.indexer_at_time("10:00")
array([0, 2])
z 'asof' argument is not supported)parsezThe string 'z' is currently parsed as z+ but in a future version will be parsed as z, consistentwith `between_time` behavior. To avoid this warning, use an unambiguous string format or explicitly cast to `datetime.time` before calling.r  z' cannot be parsed using pd.core.tools.to_time and in a future version will raise. Use an unambiguous time string format or explicitly cast to `datetime.time` before calling.zIndex must be timezone aware.)r   r6   r   dateutil.parserr8  r#   r  r   r;   r  r   r   r   r2   rk   r   _time_to_microsr%  )rY   r  r5  r8  origalttime_microsr   s   &&&     rD   r  DatetimeIndex.indexer_at_timeQ  s]   @ %&HIIdC  -Ddm ;++-D ;MM&tf,EdV LEEHE J::
 '#3#5	 ;;;ww !@AA//$++6GGIK//1K &%..033- " D  
*"4& )6 6 #/1 T{'')
*s#   D& D D#"D#&A
E32E3c               $    V ^8  d   QhRRRRRR/# )rM   include_startr   include_endrN   r6  rO   )rP   s   "rD   rQ   rR     s$     =! =!37=!MQ=!	=!rS   c                *   \        V4      p\        V4      pV P                  4       p\        V4      p\        V4      pV'       d   V'       d   \        P                  ;rMcV'       d"   \        P                  p\        P
                  p	M:V'       d"   \        P
                  p\        P                  p	M\        P
                  ;rW8:  d   \        P                  p
M\        P                  p
V
! V! We4      V	! WW4      4      pVP                  4       ^ ,          # )ag  
Return index locations of values between particular times of day.

Parameters
----------
start_time, end_time : datetime.time, str
    Time passed either as object (datetime.time) or as string in
    appropriate format ("%H:%M", "%H%M", "%I:%M%p", "%I%M%p",
    "%H:%M:%S", "%H%M%S", "%I:%M:%S%p","%I%M%S%p").
include_start : bool, default True
    Include boundaries; whether to set start bound as closed or open.
include_end : bool, default True
    Include boundaries; whether to set end bound as closed or open.

Returns
-------
np.ndarray[np.intp]
    Index locations of values between particular times of day.

See Also
--------
indexer_at_time : Get index locations of values at particular time of day.
DataFrame.between_time : Select values between particular times of day.

Examples
--------
>>> idx = pd.date_range("2023-01-01", periods=4, freq="h")
>>> idx
DatetimeIndex(['2023-01-01 00:00:00', '2023-01-01 01:00:00',
                   '2023-01-01 02:00:00', '2023-01-01 03:00:00'],
                  dtype='datetime64[us]', freq='h')
>>> idx.indexer_between_time("00:00", "2:00", include_end=False)
array([0, 1])
)	r#   r   r:  operatorleltand_or_r%  )rY   r   end_timer@  rA  r=  start_micros
end_microslopropjoin_opr)  s   &&&&&       rD   r   "DatetimeIndex.indexer_between_time  s    J Z(
8$++-&z2$X.
[ #C#++C++C++C++C #C!mmGllGs<5s;7ST||~a  rS   rO   )ro   ro   rU   )S)NNN)F)TT))r  
__module____qualname____firstlineno____doc___typr   	_data_cls!_supports_partial_string_indexingpropertyrZ   __annotations__rc   rk   ru   rz   r~   r   r   r   r
   r   r>   r   r   r   r   r   r   r   r   r   r   r	  r  r"  r2  r  r   __static_attributes____classcell__)r   s   @rD   r7   r7   t   s@   6yv DI(,%' ' 
,G\DRLR;h6<p64"B * * *-..>>#*"  $1j + + 9+. - -/ /&64>r*X 	)2.h"  " H;~  
M4^=! =!rS   r7   r   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )rM   	normalizer   ra   r   	inclusiver(   r   zTimeUnit | NonerN   r7   rO   )rP   s   "rD   rQ   rQ     sE     }7 }7 }7 }7 "}7 }7 }7rS   c                  Vf    \         P                  ! W V4      '       d   RpVe   \        V4      pV \        J g   V\        J d   \	        R4      hVEf   V eb   Ve^   \        V 4      p \        V4      p\        V P                  4      \        VP                  4      8  d   V P                  pMPVP                  pMCV e   \        V 4      p V P                  pM'Ve   \        V4      pVP                  pM\	        R4      hVEe   \        V4      p
\        V\        4      '       d)   VP                  V
8  d   VP                  P                  pM\        VR4      '       dK   VP                  e=   \        VP                  4      p\        VP                  4      V
8  d   VP                  pM_\!        V4      \"        J dM   \%        VR^ 4      ^ 8w  d   RpM7\%        VR^ 4      ^ 8w  d   VR8w  d   RpM\%        VR	^ 4      ^ 8w  d
   VR9  d   R
p\&        P(                  ! RRV RVRVRVRVRVRVRV/V	B p\*        P-                  WR7      # )a  
Return a fixed frequency DatetimeIndex.

Returns the range of equally spaced time points (where the difference between any
two adjacent points is specified by the given frequency) such that they fall in the
range `[start, end]` , where the first one and the last one are, resp., the first
and last time points in that range that fall on the boundary of ``freq`` (if given
as a frequency string) or that are valid for ``freq`` (if given as a
:class:`pandas.tseries.offsets.DateOffset`). If ``freq`` is positive, the points
satisfy `start <[=] x <[=] end`, and if ``freq`` is negative, the points satisfy
`end <[=] x <[=] start`. (If exactly one of ``start``, ``end``, or ``freq`` is *not*
specified, this missing parameter can be computed given ``periods``, the number of
timesteps in the range. See the note below.)

Parameters
----------
start : str or datetime-like, optional
    Left bound for generating dates.
end : str or datetime-like, optional
    Right bound for generating dates.
periods : int, optional
    Number of periods to generate.
freq : str, Timedelta, datetime.timedelta, or DateOffset, default 'D'
    Frequency strings can have multiples, e.g. '5h'. See
    :ref:`here <timeseries.offset_aliases>` for a list of
    frequency aliases.
tz : str or tzinfo, optional
    Time zone name for returning localized DatetimeIndex, for example
    'Asia/Hong_Kong'. By default, the resulting DatetimeIndex is
    timezone-naive unless timezone-aware datetime-likes are passed.
normalize : bool, default False
    Normalize start/end dates to midnight before generating date range.
name : Hashable, default None
    Name of the resulting DatetimeIndex.
inclusive : {"both", "neither", "left", "right"}, default "both"
    Include boundaries; Whether to set each bound as closed or open.
unit : {'s', 'ms', 'us', 'ns', None}, default None
    Specify the desired resolution of the result.
    If not specified, this is inferred from the 'start', 'end', and 'freq'
    using the same inference as :class:`Timestamp` taking the highest
    resolution of the three that are provided.

    .. versionadded:: 2.0.0
**kwargs
    For compatibility. Has no effect on the result.

Returns
-------
DatetimeIndex
    A DatetimeIndex object of the generated dates.

See Also
--------
DatetimeIndex : An immutable container for datetimes.
timedelta_range : Return a fixed frequency TimedeltaIndex.
period_range : Return a fixed frequency PeriodIndex.
interval_range : Return a fixed frequency IntervalIndex.

Notes
-----
Of the four parameters ``start``, ``end``, ``periods``, and ``freq``,
a maximum of three can be specified at once. Of the three parameters
``start``, ``end``, and ``periods``, at least two must be specified.
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<timeseries.offset_aliases>`.

Examples
--------
**Specifying the values**

The next four examples generate the same `DatetimeIndex`, but vary
the combination of `start`, `end` and `periods`.

Specify `start` and `end`, with the default daily frequency.

>>> pd.date_range(start="1/1/2018", end="1/08/2018")
DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03', '2018-01-04',
               '2018-01-05', '2018-01-06', '2018-01-07', '2018-01-08'],
              dtype='datetime64[us]', freq='D')

Specify timezone-aware `start` and `end`, with the default daily frequency.

>>> pd.date_range(
...     start=pd.to_datetime("1/1/2018").tz_localize("Europe/Berlin"),
...     end=pd.to_datetime("1/08/2018").tz_localize("Europe/Berlin"),
... )
DatetimeIndex(['2018-01-01 00:00:00+01:00', '2018-01-02 00:00:00+01:00',
               '2018-01-03 00:00:00+01:00', '2018-01-04 00:00:00+01:00',
               '2018-01-05 00:00:00+01:00', '2018-01-06 00:00:00+01:00',
               '2018-01-07 00:00:00+01:00', '2018-01-08 00:00:00+01:00'],
              dtype='datetime64[us, Europe/Berlin]', freq='D')

Specify `start` and `periods`, the number of periods (days).

>>> pd.date_range(start="1/1/2018", periods=8)
DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03', '2018-01-04',
               '2018-01-05', '2018-01-06', '2018-01-07', '2018-01-08'],
              dtype='datetime64[us]', freq='D')

Specify `end` and `periods`, the number of periods (days).

>>> pd.date_range(end="1/1/2018", periods=8)
DatetimeIndex(['2017-12-25', '2017-12-26', '2017-12-27', '2017-12-28',
               '2017-12-29', '2017-12-30', '2017-12-31', '2018-01-01'],
              dtype='datetime64[us]', freq='D')

Specify `start`, `end`, and `periods`; the frequency is generated
automatically (linearly spaced).

>>> pd.date_range(start="2018-04-24", end="2018-04-27", periods=3)
DatetimeIndex(['2018-04-24 00:00:00', '2018-04-25 12:00:00',
               '2018-04-27 00:00:00'],
              dtype='datetime64[us]', freq=None)

**Other Parameters**

Changed the `freq` (frequency) to ``'ME'`` (month end frequency).

>>> pd.date_range(start="1/1/2018", periods=5, freq="ME")
DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31', '2018-04-30',
               '2018-05-31'],
              dtype='datetime64[us]', freq='ME')

Multiples are allowed

>>> pd.date_range(start="1/1/2018", periods=5, freq="3ME")
DatetimeIndex(['2018-01-31', '2018-04-30', '2018-07-31', '2018-10-31',
               '2019-01-31'],
              dtype='datetime64[us]', freq='3ME')

`freq` can also be specified as an Offset object.

>>> pd.date_range(start="1/1/2018", periods=5, freq=pd.offsets.MonthEnd(3))
DatetimeIndex(['2018-01-31', '2018-04-30', '2018-07-31', '2018-10-31',
               '2019-01-31'],
              dtype='datetime64[us]', freq='3ME')

Specify `tz` to set the timezone.

>>> pd.date_range(start="1/1/2018", periods=5, tz="Asia/Tokyo")
DatetimeIndex(['2018-01-01 00:00:00+09:00', '2018-01-02 00:00:00+09:00',
               '2018-01-03 00:00:00+09:00', '2018-01-04 00:00:00+09:00',
               '2018-01-05 00:00:00+09:00'],
              dtype='datetime64[us, Asia/Tokyo]', freq='D')

`inclusive` controls whether to include `start` and `end` that are on the
boundary. The default, "both", includes boundary points on either end.

>>> pd.date_range(start="2017-01-01", end="2017-01-04", inclusive="both")
DatetimeIndex(['2017-01-01', '2017-01-02', '2017-01-03', '2017-01-04'],
              dtype='datetime64[us]', freq='D')

Use ``inclusive='left'`` to exclude `end` if it falls on the boundary.

>>> pd.date_range(start="2017-01-01", end="2017-01-04", inclusive="left")
DatetimeIndex(['2017-01-01', '2017-01-02', '2017-01-03'],
              dtype='datetime64[us]', freq='D')

Use ``inclusive='right'`` to exclude `start` if it falls on the boundary, and
similarly ``inclusive='neither'`` will exclude both `start` and `end`.

>>> pd.date_range(start="2017-01-01", end="2017-01-04", inclusive="right")
DatetimeIndex(['2017-01-02', '2017-01-03', '2017-01-04'],
              dtype='datetime64[us]', freq='D')

**Specify a unit**

>>> pd.date_range(start="2017-01-01", periods=10, freq="100YS", unit="s")
DatetimeIndex(['2017-01-01', '2117-01-01', '2217-01-01', '2317-01-01',
               '2417-01-01', '2517-01-01', '2617-01-01', '2717-01-01',
               '2817-01-01', '2917-01-01'],
              dtype='datetime64[s]', freq='100YS-JAN')
Dz$Neither `start` nor `end` can be NaTzVOf the four parameters: start, end, periods, and freq, exactly three must be specifiedoffsetnanosecondsr   microsecondsr   millisecondsr   r   r   periodsr3   r2   r\  r]  r   rt   )r   r   rO   )comany_noner   r   r   r   r   r   r6   r   r   basefreqstrhasattrr`  r   rl   r   r:   r   _generate_ranger7   r9   )r   r   rd  r3   r2   r\  ra   r]  r   kwargscresotdr   s   &&&&&&&&$,   rD   
date_rangern    s+   ~ |WS99|scz?@@| e$EC.C!%**-0B3880LLzzxxe$E::D_C.C88D<  &t,E$%%;;&99,,Dx((T[[-Dt{{+%bgg.677Ddz)42a7DT>15:tt|DT>15:t<?WD)) 


 
 	

 
 
 
 
 
E $$U$66rS   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# )rM   rd  z
int | Noner3   zFrequency | dt.timedeltar\  r   ra   r   r]  r(   rN   r7   rO   )rP   s   "rD   rQ   rQ     sP     k k k #	k k k "k krS   c
                   Vf   Rp\        V4      h\        V\        4      '       db   VP                  4       P	                  R4      '       d=   RV 2pVR8X  d   \        V R24      h T;'       g    Rp\        V,          ! WR7      pM V'       g	   V'       d   R	V 2p\        V4      h\        RR
V RVRVRVRVRVRVRV	/V
B #   \        \         3 d   p\        T4      ThRp?ii ; i)a  
Return a fixed frequency DatetimeIndex with business day as the default.

Parameters
----------
start : str or datetime-like, default None
    Left bound for generating dates.
end : str or datetime-like, default None
    Right bound for generating dates.
periods : int, default None
    Number of periods to generate.
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.
normalize : bool, default False
    Normalize start/end dates to midnight before generating date range.
name : Hashable, default None
    Name of the resulting DatetimeIndex.
weekmask : str or None, default None
    Weekmask of valid business days, passed to ``numpy.busdaycalendar``,
    only used when custom frequency strings are passed.  The default
    value None is equivalent to 'Mon Tue Wed Thu Fri'.
holidays : list-like or None, default None
    Dates to exclude from the set of valid business days, passed to
    ``numpy.busdaycalendar``, only used when custom frequency strings
    are passed.
inclusive : {"both", "neither", "left", "right"}, default "both"
    Include boundaries; Whether to set each bound as closed or open.
**kwargs
    For compatibility. Has no effect on the result.

Returns
-------
DatetimeIndex
    Fixed frequency DatetimeIndex.

See Also
--------
date_range : Return a fixed frequency DatetimeIndex.
period_range : Return a fixed frequency PeriodIndex.
timedelta_range : Return a fixed frequency TimedeltaIndex.

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.

To learn more about the frequency strings, please see
:ref:`this link<timeseries.offset_aliases>`.

Examples
--------
Note how the two weekend days are skipped in the result.

>>> pd.bdate_range(start="1/1/2018", end="1/08/2018")
DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03', '2018-01-04',
           '2018-01-05', '2018-01-08'],
          dtype='datetime64[us]', freq='B')
Nz>freq must be specified for bdate_range; use date_range insteadCz!invalid custom frequency string: CBHz, did you mean cbh?zMon Tue Wed Thu Fri)holidaysweekmaskzZa custom frequency string is required when holidays or weekmask are passed, got frequency r   r   rd  r3   r2   r\  ra   r]  rO   )	r   r6   r   upper
startswithr   r   r   rn  )r   r   rd  r3   r2   r\  ra   rt  rs  r]  rk  msgr   s   &&&&&&&&&&,  rD   bdate_rangerx    s1   \ |Nn$!8!8!=!=1$85=u$7899	+88#8H!$'MD 
X2269 	 o 


 
 	

 
 
 
 
 
 
 )$ 	+S/s*	+s   (C 1C C&C!!C&c                    V ^8  d   QhRRRR/# )rM   time_objzdt.timerN   intrO   )rP   s   "rD   rQ   rQ   P  s     6 6g 6# 6rS   c                    V P                   ^<,          ^<,          ^<V P                  ,          ,           V P                  ,           pRV,          V P                  ,           # )<   r   )hourminutesecondmicrosecond)rz  secondss   & rD   r:  r:  P  sB    mmb 2%X__(<<xNGw!5!555rS   )ru   rk   rc   )r2   r   r4   r  r  r  timetzstd)NNNNNFNboth)
NNNBNTNNNr  )U
__future__r   r  r   rC  typingr   r   r;   numpyr   pandas._libsr   r   r   r	   rV   r
   pandas._libs.tslibsr   r   r   r   r   r   pandas._libs.tslibs.dtypesr   pandas._libs.tslibs.offsetsr   r   pandas.errorsr   pandas.util._decoratorsr   r   pandas.util._exceptionsr   pandas.core.dtypes.commonr   pandas.core.dtypes.dtypesr   r   pandas.core.dtypes.genericr   pandas.core.dtypes.missingr   pandas.core.arrays.datetimesr   r   pandas.core.commoncorecommonre  pandas.core.indexes.baser   r     pandas.core.indexes.datetimeliker!   pandas.core.indexes.extensionr"   pandas.core.tools.timesr#   collections.abcr$   pandas._typingr%   r&   r'   r(   r)   r*   r+   r,   pandas.core.apir-   r.   r/   rE   
_field_ops_datetimelike_methods	_bool_opsr7   rn  rx  r:  )methods   0rD   <module>r     s   "       : ) 5 / 1 < !   D 7 +(	 	 	
 @B  $999FBB 	9 		  -t<
 
	 	 
  HO!* O!  =	4O!d" H}7 !}7 }7@ Hk k\6u.s   2	F

 F

