ValueError: Found input variables with inconsistent numbers of samples: [13366, 1735
After you apply dropna on your out, some rows are removed but the same is not done for your input. Hence, they have different number of rows, leading to your error.