-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DataFrame.shift unexpected result #11195
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
In 0.17/master here's what happens - closer but it looks like the int/float blocks are shifted separately.
A workaround that works in both 0.16 and master to cast your frame to floats first.
|
this is already covered by #10539 |
@121onto pull requests are always welcome to fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider an arbitrary DataFrame:
This gives:
Now shift columns:
It appears this issue has been around for over a year:
http://stackoverflow.com/questions/23105197/shift-entire-column-on-a-pandas-dataframe
The text was updated successfully, but these errors were encountered: