-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Open
Labels
API DesignDatetimeDatetime data dtypeDatetime data dtypeDeprecateFunctionality to remove in pandasFunctionality to remove in pandasIndexRelated to the Index class or subclassesRelated to the Index class or subclasses
Description
DatetimeIndex.__new__ has constructor keywords (excluding ones present in the base class and ones already deprecated) freq, tz, ambiguous, dayfirst, yearfirst. dayfirst and yearfirst overlap with the pd.to_datetime keywords.
Could we deprecate some/all of these keywords and point users to pd.to_datetime instead?
freqwe could either exempt or make a post-construction thing by making_with_freqpublic.to_datetimehasutcinstead oftz. I generally liketzbetter thanutcas a keyword, but deprecatingutcmight be painful. We could addtztoto_datetimeand disallow passing tz-and-utc.- Adding
ambiguousto to_datetime wouldn't be too bad aside from general keyword fatigue.
(similarly TimedeltaIndex has unit and freq, unit being present in pd.to_timedelta)
Metadata
Metadata
Assignees
Labels
API DesignDatetimeDatetime data dtypeDatetime data dtypeDeprecateFunctionality to remove in pandasFunctionality to remove in pandasIndexRelated to the Index class or subclassesRelated to the Index class or subclasses