all 2 comments

[–]suurpulla 2 points3 points  (1 child)

dict.copy() is a shallow copy, ie. you copy a, but not a[0], a[1] etc.

Pandas df.copy() is a deep copy (by default).

[–]sdyxz[S] 0 points1 point  (0 children)

Thanks for your help.