-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add level kw to .between_time, at_time, asfreq #2141
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
Can potentially add a bunch of ts related methods for multiindex. Resample, asfreq, at_time, between_time, etc |
So, before these new methods arrive, how can we perform these operations? For example, I have a DatetimeIndex as level 0 of a MultiIndex, how can I use between_time() on it? |
@kawing-chiu pls show what you are trying to do. |
I have a multi-indexed dataframe like this:
What I'm trying to do is to select an intraday time range (say 09:30:00 to 09:45:00) for all stocks in all dates. This is typically done by using |
you can easily do it like this
the enhancement would be to allow a |
Thanks @jreback . It works. I have a further suggestion on datetime indexing: Even if we have |
@kawing-chiu can you make a new issue w.r.t. using a time string as an indexer. and of course PR's are welcome for this and other issues! |
closing as there's been no activity in ~7 years, and the workaround in #2141 (comment) looks fine |
http://stackoverflow.com/questions/13030245/how-to-shift-a-pandas-multiindex-series
The text was updated successfully, but these errors were encountered: