DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+5 =
Submit