-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Series replace values using timestamps in a dict #5797
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
this works in 0.13/master. I recall fixing this but not of the exact issue. |
Jeff, |
I take that back, this is partially broken; from a dict does not work (but a single replace does)
You can 'force' it to work by first casting to 'object' (so this is a bug)
|
@cpcloud if you have a chance |
needs something like:
before the comparison |
Thanks jeback. I will force it for now. |
gr8 (you could also patch in your source code).... can you do a PR to fix (with some tests?) |
just did. the getattr line was all that was needed for the other list. return values == getattr(s, 'asm8', s) |
closed by #5806 |
I was working with financial data and was replacing dates that were not valid trading days. It seems that replace does not work on any dict between two timestamps. Here is an example. This simply throws an exception on 0.12.
in 0.12 there is an exception:
https://gist.github.com/MichaelWS/8186689
The text was updated successfully, but these errors were encountered: