Skip to content

Commit 2dfab28

Browse files
committed
use simpler dtype for intervals
1 parent 79fc616 commit 2dfab28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/interval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ def astype(self, dtype, copy=True):
804804
@cache_readonly
805805
def dtype(self):
806806
"""Return the dtype object of the underlying data"""
807-
return IntervalDtype(str(self.left.dtype))
807+
return IntervalDtype(self.left.dtype.name)
808808

809809
@property
810810
def inferred_type(self):

0 commit comments

Comments
 (0)