Return a copy of this DataFrame.

As this dataframe only represents data in the backing SQL store, and does not contain any data, this is a metadata copy only, no actual data is duplicated and changes to the underlying data will represented in both copy and original. Changes to data, index, sorting, grouping etc. on the copy will not affect the original. The savepoints on the other hand will be shared by the original and the copy.

If you want to create a snapshot of the data, have a look at database_create_table().

Calling copy(df) will invoke this copy function, i.e. copy(df) is implemented as df.copy().


A copy of the DataFrame.