Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python copy dataframe

data_copy = data.copy(deep = False) # any change in original data will be
                                    # imitated in copied data and vice versa

data_copy = data.copy() # modifications in original data will not reflected
                        # in copied data
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #python #copy #dataframe
ADD COMMENT
Topic
Name
2+3 =