I'm trying to add one row to the pandas datafame, and I got the following message: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame Here is my code: df_test = df.iloc[:60:3] # a datafrme for test row_add = df.iloc[100] # one row to add df_test.loc[row_add.name] = row_add.tolist() I want to know why it shows the message and how to deal with it? From the result shown in the console there is nothing wrong with the code and it works as ecpected. Should I just neglect the message? Continue reading...