-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Not all DateOffsets are comparable #8386
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
I am not sure their is a guarantee of comparability between offsets anywhere. Have you seen and docs/code which indicate this? e.g.
so I suppose this is an issue, but what is the use case? |
at the minimum, should raise some kind of Type or Value error saying that On Fri, Sep 26, 2014 at 7:38 AM, jreback [email protected] wrote:
|
@jtratner yeh I think that they should raise for now |
The use case is the following: I have a metric that can be calculated on different frequencies (daily, hourly, monthly). The thing is that a different filtering needs to happen depending on the frequency: if the metric is calculated hourly, then all data points after 18:00 or before 8:00 for a given day need to be filtered out. This cannot happen if the metric has been calculated daily, since the timestamps will look like So basically I need to know, given a datetimeindex, if its frequency ir more os less granular than a day. |
The text was updated successfully, but these errors were encountered: