-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Timedelta returns wrong value #27285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Given that 'M' is the unit for month, and also when specifying a |
For strptime and strftime %M is minutes, e.g. %y-%m-%d %H:%M:%S |
Ah, that's true. But I would argue that units and offsets are "closer" to timedelta, so are more important to take into account when deciding what "M" should mean (but it is certainly unfortunate that formats strings and units are basically the other way around) |
we now no longer allow passing |
If I'm reading this correctly, the plan is to drop support for Monthly Timedeltas in the future. There are many cases where monthly Timedeltas are very useful, even if they don't represent a fixed amount of time as @jreback mentioned. Most businesses rely on monthly reporting, so having the option to do monthly Timedeltas is crucial. |
@theNicelander you can already do monthly timeseltas with offsets which handle this type of. variable movement Timedelta is a fixed unit and so doesn’t support non fixed values |
Looks like we've deprecated
|
Code Sample
Problem description
Out[7] shoud return 182 days but 6 minutes
The text was updated successfully, but these errors were encountered: