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.
Changed in version 2.0.0: The various numeric date/time attributes (day
, month
, year
etc.) now have dtype int32
. Previously they had dtype int64
.
Datetime-like data to construct index with.
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.
Set the Timezone of the data.
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.
If True, parse dates in data with the day first order.
If True parse dates in data with the year first order.
Note that the only NumPy dtype allowed is datetime64[ns].
Make a copy of input ndarray.
Name to be stored in the index.
Attributes
Methods
Notes
To learn more about the frequency strings, please see this link.
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[s, UTC]', freq=None)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4