While executing the below code, the dataframe x values should not get changed as i am performing only for y
x = pd.DataFrame(data = {"test":["mkt1","mkt2","mkt3"],
"test2":["cty1","cty2","cty3"]})
y = x
y["test"] = "boom"
print(x)
Please see the output here. enter image description here