[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
Snot correctly being recognized in numpy's timedelta64. We prevent the error by making sure the frequency isswhenever the pd.offset isSecond, and similar for sub-second frequencies.