Feb-08-2022, 04:29 AM
(This post was last modified: Feb-08-2022, 04:29 AM by deanhystad.)
A length 73 array has index values 0..72. 73 is out of range.
It should always draw suspicion when you loop "i" over the length of an array and use "i+1" as an array index.
It should always draw suspicion when you loop "i" over the length of an array and use "i+1" as an array index.
for i in range(length2): if kl_50_132_transposed.iat[i,2] != kl_50_132_transposed.iat[i-1,2]: end_date.append(kl_50_132_transposed.iat[i+1,3])