@@ -87,14 +87,17 @@ class DatetimeIndex(DatetimeTimedeltaMixin):
87
87
----------
88
88
data : array-like (1-dimensional), optional
89
89
Optional datetime-like data to construct index with.
90
- copy : bool
91
- Make a copy of input ndarray.
92
90
freq : str or pandas offset object, optional
93
91
One of pandas date offset strings or corresponding objects. The string
94
92
'infer' can be passed in order to set the frequency of the index as the
95
93
inferred frequency upon creation.
96
94
tz : pytz.timezone or dateutil.tz.tzfile
97
95
Timezone of the datetime.
96
+ normalize : bool, default False
97
+ Normalize start/end dates to midnight before generating date range.
98
+ closed : {None, 'left', 'right'}, optional
99
+ Make the interval closed with respect to the given frequency to
100
+ the 'left', 'right', or both sides (None, the default).
98
101
ambiguous : 'infer', bool-ndarray, 'NaT', default 'raise'
99
102
When clocks moved backward due to DST, ambiguous times may arise.
100
103
For example in Central European Time (UTC+01), when going from 03:00
@@ -109,12 +112,16 @@ class DatetimeIndex(DatetimeTimedeltaMixin):
109
112
times)
110
113
- 'NaT' will return NaT where there are ambiguous times
111
114
- 'raise' will raise an AmbiguousTimeError if there are ambiguous times.
112
- name : object
113
- Name to be stored in the index.
114
115
dayfirst : bool, default False
115
116
If True, parse dates in `data` with the day first order.
116
117
yearfirst : bool, default False
117
118
If True parse dates in `data` with the year first order.
119
+ dtype : numpy.dtype or DatetimeTZDtype
120
+ Note that the only NumPy dtype allowed is ‘datetime64[ns]’.
121
+ copy : bool
122
+ Make a copy of input ndarray.
123
+ name : object
124
+ Name to be stored in the index.
118
125
119
126
Attributes
120
127
----------
@@ -828,7 +835,7 @@ def date_range(
828
835
Normalize start/end dates to midnight before generating date range.
829
836
name : str, default None
830
837
Name of the resulting DatetimeIndex.
831
- closed : {None, 'left', 'right'}, optional
838
+ closed : {'left', 'right'}, optional
832
839
Make the interval closed with respect to the given frequency to
833
840
the 'left', 'right', or both sides (None, the default).
834
841
**kwargs
0 commit comments