I am trying to replace a value in a Df based on 2 conditions and doesn´t seem to work. I have tried 2 different options: I want to replace a certain value of the column named "Debt"
Df[(Df['time_idx'] ==82) & (Df['Country'] == "France") ]["Debt"]=7
Df.iloc[0]["Debt"]=7
Any ideas of why it does not work? It doesn´t give an error but the value doesn´t change
Thanks in advance