create copy of dataframe but filtered data code example Example: dataframe deep copy pandas.DataFrame.copy(deep=True)