-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
API DesignBugIndexRelated to the Index class or subclassesRelated to the Index class or subclassesIntervalInterval data typeInterval data typeTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
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')
Metadata
Metadata
Assignees
Labels
API DesignBugIndexRelated to the Index class or subclassesRelated to the Index class or subclassesIntervalInterval data typeInterval data typeTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite