Using =
to make a copy of a DataFrame creates a reference to the original DataFrame
. Thus, any changes made to the new DataFrame
will also be reflected in the original.
To make changes to the copy without affecting the original, use the .copy()
method.