Answers for "copy pandas dataframe to another dataframe"

1

dataframe from another dataframe

new = old.filter(['A','B','D'], axis=1)
Posted by: Guest on March-02-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 "copy pandas dataframe to another dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language