-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
F/rolling size #24111
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
F/rolling size #24111
Conversation
| Hello @Ma3aXaKa! Thanks for updating the PR.
Comment last updated on December 07, 2018 at 17:52 Hours UTC |
| The only question I have is how to properly document an alias like that? |
Codecov Report
@@ Coverage Diff @@ ## master #24111 +/- ## ========================================== - Coverage 92.21% 92.2% -0.01% ========================================== Files 161 161 Lines 51684 51688 +4 ========================================== + Hits 47658 47660 +2 - Misses 4026 4028 +2
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@ ## master #24111 +/- ## ========================================== - Coverage 92.2% 92.19% -0.02% ========================================== Files 162 162 Lines 51700 51711 +11 ========================================== + Hits 47670 47674 +4 - Misses 4030 4037 +7
Continue to review full report at Codecov.
|
jreback left a comment
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.
this is not the right way - this should be setup in base class (where groupby and resample also inherit)
.size is not the same as .count either - it’s the size of the window where
count is the size - min_count
| Thanks for the feedback. Maybe this is stupid question but could you give an example where |
| @TomAugspurger Do you think I need to implement |
| Perhaps... Though I size will be equivalent to the length of each window, right? I'm familiar with this section of the code base, but you may be able to find a way to get that information without having to write any Cython. …On Wed, Dec 5, 2018 at 6:35 AM Artem Bogachev ***@***.***> wrote: @TomAugspurger <https://github.com/TomAugspurger> Do you think I need to implement roll_size function? I am looking into _libs/window.pyx and there are Cython implementation of basic aggregate functions on windows. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#24111 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQHIlXVihr6lTIB2NAqZ7VqFyTpvhYIks5u1718gaJpZM4ZCfKv> . |
|
|
| so looking at this again, I think that this is almost exactly |
To give a concrete example with groupby, as there both are implemented: |
| I have pushed the solution I came up with. Could |
636c086 to 9a28452 Compare | @jreback Is this approach ok? |
| Would rather see something that integrates into the existing |
| if you want to update according to comment, pls ping. |
git diff upstream/master -u -- "*.py" | flake8 --diff