-
-
Couldn't load subscription status.
- Fork 19.2k
Open
Labels
DeprecateFunctionality to remove in pandasFunctionality to remove in pandasNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action
Description
ser = pd.Series([1, 2, 3])
>>> ser.reindex([4, 5, 6], fill_value="foo")
4 foo
5 foo
6 foo
dtype: objectPDEP-6 is moving us away from automatic upcasting in __setitem__-like operations. #53868 and #53802 suggest doing the same (with possible int->float exception) for unstack and shift, respectively. I think that just leaves reindex. Maybe we should call this behavior a footgun and deprecate it across the board?
Metadata
Metadata
Assignees
Labels
DeprecateFunctionality to remove in pandasFunctionality to remove in pandasNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action