Skip to content

Commit 9084906

Browse files
committed
use simpler dtype for intervals
1 parent 407d7b3 commit 9084906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/interval.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def astype(self, dtype, copy=True):
796796
@cache_readonly
797797
def dtype(self):
798798
"""Return the dtype object of the underlying data"""
799-
return IntervalDtype(str(self.left.dtype))
799+
return IntervalDtype(self.left.dtype.name)
800800

801801
@property
802802
def inferred_type(self):

0 commit comments

Comments
 (0)