- chunked_pairs = [pairs0[i:i+period] for i in range(0, len(pairs0), period)]
- if len(chunked_pairs[-1]) < period and fillvalue:
- chunked_pairs[-1] += [f_grid[fillvalue]] * (period - len(chunked_pairs[-1]))
+ # chunked_pairs = [pairs0[i:i+period] for i in range(0, len(pairs0), period)]
+ # if len(chunked_pairs[-1]) < period and fillvalue:
+ # chunked_pairs[-1] += [f_grid[fillvalue]] * (period - len(chunked_pairs[-1]))
+ chunked_pairs = chunks(pairs0, period, fillvalue=None)