df.merge(d).copy(deep=True) code example Example: dataframe deep copy pandas.DataFrame.copy(deep=True)