Could somebody explain to me a difference between
df2 = df1
df2 = df1.copy()
df3 = df1.copy(deep=False)
I have tried all options and did as follows:
df1 = pd.DataFrame([1,2,3,4,5])
df2 = df1
df3 = df1.copy()
df4 = df1.copy(deep=False)
df1 = pd.DataFrame([9,9,9])
and returned as follows:
df1: [9,9,9]
df2: [1,2,3,4,5]
df3: [1,2,3,4,5]
df4: [1,2,3,4,5]
So, I observe no difference in the output between .copy() and .copy(deep=False). Why?
I would expect one of the options '=', copy(), copy(deep=False) to return [9,9,9]
What am I missing please?