I have a dataset where some rows are split over many columns more than they should. I am trying to shift some rows manually using the following code:
df_train.iloc[3537]["title"] = df_train.iloc[3537]["title"] + "" + df_train.iloc[3537]["text"]
df_train.iloc[3537]["text"] = df_train.iloc[3537]["label"] + "" + df_train.iloc[3537]["X1"]
df_train.iloc[3537]["label"] = df_train.iloc[3537]["X2"]
So basically Im just accessing the row by index and replacing the content of the column with what I need. However it doesnt seem to work when I try accessing the rows again, they remain unchanged.