Closed
Description
xref #15081, a couple of issues
-
IntervalIndex.map
is xfailed - parametrize indexex/common.py/test_map similar to how
indexex/datetimelike.py/test_map
is done (IOW on dict / Series) (COMPAT: map infers all-nan / empty correctly #18491) - resolve datetimelike with empty map [2] should be all
NaT
for the datetimelikes. (COMPAT: map infers all-nan / empty correctly #18491)
In [2]: pd.date_range('20130101', periods=3).map({})
Out[2]: Float64Index([nan, nan, nan], dtype='float64')
In [3]: pd.Index([1,2,3]).map({})
Out[3]: Float64Index([nan, nan, nan], dtype='float64')