Skip to content

Commit 6e8eaff

Browse files
temp override DatetimelikeIndex.__array__
1 parent 8ebe597 commit 6e8eaff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/indexes/datetimelike.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ class DatetimeIndexOpsMixin(DatetimeLikeArrayMixin):
234234
_resolution = cache_readonly(DatetimeLikeArrayMixin._resolution.fget)
235235
resolution = cache_readonly(DatetimeLikeArrayMixin.resolution.fget)
236236

237+
def __array__(self, dtype=None):
238+
# TODO properly dispatch to EA
239+
return Index.__array__(self)
240+
237241
def equals(self, other):
238242
"""
239243
Determines if two Index objects contain the same elements.

0 commit comments

Comments
 (0)