Add rolling.rank() same as pandas
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.2k
- Forks
- 1.4k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 14
Description
Is your feature request related to a problem?
Dear xarray maintainers,
I would like to express my heartfelt gratitude for the significant optimizations your xarray library has brought to my project. Xarray combines the speed of numpy with the highly customizable parameters of pandas. The extensive parameters in the rolling module have allowed me to achieve functionality similar to pandas more efficiently.
I am wondering if it would be possible to incorporate a ranking method for rolling windows, including the ability to specify parameters such as pct, similar to the pandas rolling.rank function. Your consideration of this feature would be greatly appreciated.
Once again, thank you for your contributions!
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading xarray's existing rolling API and comparing the requested behavior with pandas' rolling.rank, including the pct parameter. Identify the existing rolling aggregation tests and implementation entry points, then verify that rolling.rank matches pandas for representative windows and pct settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, pandas, python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100