Answers for "pandas copy a dataframe to a new dataframe"

10

dataframe copy

new_dataframe = dataframe.copy(deep = True)
Posted by: Guest on November-04-2020
0

copy a df to another df

s = pd.Series([1, 2], index=["a", "b"])
>>> deep = s.copy()
>>> shallow = s.copy(deep=False)
Posted by: Guest on November-16-2021

Code answers related to "pandas copy a dataframe to a new dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language