4
4
5
5
import numpy as np
6
6
7
- from pandas .types .common import (_NS_DTYPE , _TD_DTYPE ,
7
+ from pandas .types .common import (_NS_DTYPE , _TD_DTYPE , # noqa
8
8
is_period_arraylike ,
9
9
is_datetime_arraylike , is_integer_dtype ,
10
10
is_datetime64_dtype , is_datetime64tz_dtype ,
13
13
14
14
from pandas .core .base import PandasDelegate , NoNewAttributesMixin
15
15
from pandas .tseries .index import DatetimeIndex
16
- from pandas ._libs .period import IncompatibleFrequency # flake8: noqa
16
+ from pandas ._libs .period import IncompatibleFrequency # noqa
17
17
from pandas .tseries .period import PeriodIndex
18
18
from pandas .tseries .tdi import TimedeltaIndex
19
19
from pandas .core .algorithms import take_1d
@@ -162,6 +162,7 @@ class DatetimeProperties(Properties):
162
162
def to_pydatetime (self ):
163
163
return self .values .to_pydatetime ()
164
164
165
+
165
166
DatetimeProperties ._add_delegate_accessors (
166
167
delegate = DatetimeIndex ,
167
168
accessors = DatetimeIndex ._datetimelike_ops ,
@@ -201,6 +202,7 @@ def components(self):
201
202
"""
202
203
return self .values .components .set_index (self .index )
203
204
205
+
204
206
TimedeltaProperties ._add_delegate_accessors (
205
207
delegate = TimedeltaIndex ,
206
208
accessors = TimedeltaIndex ._datetimelike_ops ,
@@ -225,6 +227,7 @@ class PeriodProperties(Properties):
225
227
Raises TypeError if the Series does not contain datetimelike values.
226
228
"""
227
229
230
+
228
231
PeriodProperties ._add_delegate_accessors (
229
232
delegate = PeriodIndex ,
230
233
accessors = PeriodIndex ._datetimelike_ops ,
0 commit comments