I'm not sure how to explain the question so just look at the simple code.
import numpy as np
import pandas as pd
x = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
y = x
del y ["A"]
print(x)
print(y)
Output
B
0 3
1 4
B
0 3
1 4
As you can see, deleting a column from y deletes it from x too, is there any way to delete the column from y without deleting it on x too?