python Pandas DataFrame copy(deep=False) vs copy(deep=True) vs ‘=’
If you see the object IDs of the various DataFrames you create, you can clearly see what is happening. When you write df2 = df1, you are creating a variable named df2, and binding it with an object with id 4541269200. When you write df1 = pd.DataFrame([9,9,9]), you are creating a new object with id … Read more