-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Panel shift revert #6974
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
Panel shift revert #6974
Conversation
IIRC @TomAugspurger what do you think? as an aside let's make the vbench shorter so it takes at most 1000ms |
Anyone else get random travis failings on asserts that should pass?
|
@dalejung I have seen this one a few times....I think its just a precision issue, can iu nvestigate? |
Yar. I'll track it down. Sent from my iPhone
|
added slice_shift func docs and removed freq argument
…#6826 TST: Make sure Panel.shift retains dtypes DOC: removed previous doc entries for pandas-dev#6605 Re-add note about dropping shifted periods DOC: added note about bug fix don't pass on freq
@@ -3227,6 +3227,42 @@ def shift(self, periods=1, freq=None, axis=0, **kwds): | |||
|
|||
return self._constructor(new_data).__finalize__(self) | |||
|
|||
def slice_shift(self, periods=1, axis=0, **kwds): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not 100% happy with this (I like your soln better), but perf is odd. can we do this inside of Block instead? (e.g. just automatically do it if ndim >= 3), a bit cleaner that way and all the code in the same place
Reverts #6605 closes #6959 #6826
vs 13.1
vs master
Note that the `pct_change is slower due to the deferred alignment.