Google News
logo
Pandas - Interview Questions
How can we create copy of series in Pandas?
pandas.Series.copy
 
Series.copy(deep=True)
 
pandas.Series.copy. Make a deep copy, including a copy of the data and the indices. With deep=False neither the indices or the data are copied. Note that when deep=True data is copied, actual python objects will not be copied recursively, only the reference to the object.
Advertisement