Aug-02-2020, 08:29 PM
This is one of those times when the Python error message isn't all that useful. I think this should be flagged as a syntax error, a floating else statement without a corresponding if or for. As in:
if Data_Temp == data_frame_current.iloc[b,0]: else: data_frame_current.drop(index=[b,0])After all, "else" is the first statement following "if". But I guess indentation is either more important or is checked first.