how to create a copy of a pandas dataframe without altering the first code example Example: dataframe deep copy pandas.DataFrame.copy(deep=True)