My suggestion is that we use df = pd.concat([df, pd.DataFrame([[txt, labels[l]]])], ignore_index=True) instead of df = df.append([[txt, labels[l]]], ignore_index=True) to avoid the future waning when Preprocessing the movie dataset into a more convenient format.