Skip to content
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

ENH: Add Rolling.nunique() #61087

Merged
merged 3 commits into from
Mar 10, 2025
Merged

ENH: Add Rolling.nunique() #61087

merged 3 commits into from
Mar 10, 2025

Conversation

snitish
Copy link
Member

@snitish snitish commented Mar 8, 2025

Hash-map (C++ unordered_map via Cython) based implementation of Rolling.nunique() with O(N) average time complexity.

@snitish snitish requested a review from WillAyd as a code owner March 8, 2025 22:15
@mroeschke mroeschke added Enhancement Window rolling, ewma, expanding labels Mar 10, 2025
@mroeschke mroeschke added this to the 3.0 milestone Mar 10, 2025
@mroeschke mroeschke merged commit 781182c into pandas-dev:main Mar 10, 2025
41 of 42 checks passed
@mroeschke
Copy link
Member

Thanks @snitish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: provide nunique method on Rolling object
2 participants