Pandas.Series.dtype.kind 是 None 对于 pd.interval

Pandas.Series.dtype.kind is None for pd.interval

测试代码:

s = pd.Series(pd.array([pd.Interval(0,1.2), pd.Interval(5,123)]))
s.dtype
s.dtype.kind is None

>>> interval[float64]
>>> True

是bug还是故意的?如果是后者 - 为什么?

显示为 None 的原因仅仅是因为 IntervalDtype explicitly sets kind = None. This should probably be updated to 'O', though some care is needed here as it will result in unintended side effects, e.g. this would cause is_string_dtype to return True (see ).

的实施