Jul-07-2022, 07:15 PM
df1=df does not copy df into a new dataframe df1, despite that being what it looks like. Instead, you simply have 2 variables pointing to the same dataframe. You need to use the copy() command
See Documentation
See Documentation