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

Rolling window contains function #10

Open
ajcr opened this issue Apr 21, 2018 · 0 comments
Open

Rolling window contains function #10

ajcr opened this issue Apr 21, 2018 · 0 comments

Comments

@ajcr
Copy link
Owner

ajcr commented Apr 21, 2018

Essentially a rolling version of Python's in operator. Return True if the window contains a given string, e.g.:

>>> seq = 'rollrollingndsfw'
>>> r = rolling.Contains(seq, window_size=10, match='rolling')
>>> list(r)
[False, True, True, ...]

Could also be extended to match multiple fixed strings.

@ajcr ajcr changed the title Rolling string contains function Rolling window contains function Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant