Jun-22-2019, 08:29 AM
0:365 does that mean 0 up to 365 included [0,1,....,364,365] -> length 366
or does it mean 365 not included [0,1,...363,364]? -> length 365
Usually in Python slicing does not include the end index.
So what index do you want to skip?
or does it mean 365 not included [0,1,...363,364]? -> length 365
Usually in Python slicing does not include the end index.
So what index do you want to skip?
for idx in range(20311//366): # or //365 or //367? pick = series[idx*367:(idx+1)*367-2] # skipping 2 pick = series[idx*367:(idx+1)*367-1] # skipping 1