copy dataframe pandas by column ID code example Example: dataframe copy new_dataframe = dataframe.copy(deep = True)