Python 3 | Rolling Windows as simple as possible! #coding #programming

Python 3 | Rolling Windows as simple as possible! #coding #programming

James Clare

9 дней назад

1,591 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@claycreate
@claycreate - 02.06.2025 21:34

Why not

data = list(range(1,m))

Window =

[data[n:n+a] for n in range(m-a+1)]

Where "a" is size of splits and "m" is the max data number

In this case m=5 and a=3

Ответить