Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

deep copy a dataframe

s = pd.Series([1, 2], index=["a", "b"])
>>> deep = s.copy()
>>> shallow = s.copy(deep=False)
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #deep #copy #dataframe
ADD COMMENT
Topic
Name
7+5 =