-
Notifications
You must be signed in to change notification settings - Fork 12
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
[FIX] support freq='S'
in id_time_grid
#157
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Can you restore the outputs? |
This reverts commit 185dc98.
Out of interest - we clear the outputs in every other repo, why should they be kept here? |
Because we actually use them as docs here |
Can you elaborate on the following?
The only problematic one seems to be seconds because it can be either |
Ah nevermind, seems like |
So please just remove the microseconds, since |
How is that an issue? Given So in fact we should be adding Month as well, i.e.
which captures all of |
This reverts commit c3125e5.
If you want to go that way then remove the try except |
And also add quarter which I think also fails atm, quarter should translate to 3months, so |
Quarter was already included? |
Yeah I'm thinking whether there's any easy case we're then missing by removing it. Maybe let's keep it like this for now.... |
freq='S'
in id_time_grid
The following code fails without the fix, which is caused by the capital
S
not correctly being recognized in numpy's timedelta64. We prevent the error by making sure the frequency iss
whenever the pd.offset isSecond
, and similar for sub-second frequencies.