-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
DatetimeDatetime data dtypeDatetime data dtypeDeprecateFunctionality to remove in pandasFunctionality to remove in pandas
Description
we have a DatetimeIndex.snap
, this is duplicative of our more general .ceil()
, .floor()
and .round()
(and .to_period().to_timestamp()
); the former are also generally available on all of the timelike indices (DTI, TDI, PI)
we should remove this and prefer the 3 rounding methods
jorisvandenbossche
Metadata
Metadata
Assignees
Labels
DatetimeDatetime data dtypeDatetime data dtypeDeprecateFunctionality to remove in pandasFunctionality to remove in pandas
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]DEPR: .snap()[/-][+]DEPR: DatetimeIndex.snap()[/+]ghost commentedon Jun 29, 2019
Corollary: isn't
normalize
justfloor('D')
?ghost commentedon Jul 17, 2019
To be clear,
round/floor/ceil
do not currently accept non-ticks whilesnap()
does. I've started on a fix for those methods, but no responses.Until that's fixed, deprecating would mean deleting useful functionality.