Sliding window with fill values

Open
#343 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start by reading the existing sliding_window implementation and the pad proposal in PR #340. Clarify the desired constant-boundary API and behavior with maintainers, then define tests for the requested cases once the feature scope is agreed.

Written by the indexing model from the issue text.

Description

The sliding_window function is pretty neat. One of the cases that I sometimes encounter benefit from having a function like that. Though sometimes I need some sort of boundary condition as well. For instance adding a constant to the boundaries. The function pad proposed in PR ( https://github.com/pytoolz/toolz/pull/340 ) would go well with this use case. Though I wanted to see if there was interest in having sliding window function with a constant boundary condition.

Dominant language
Python
Stars
5.2k
Forks
280
Avg merge
6d 17h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pytoolz/toolz

All issues in pytoolz/toolz

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.