In [1]:
import pandas as pd
In [2]:
col1 = [1, 2, 3]
col2 = ["A", "B", "C"]
db = pd.DataFrame({"COL1": col1, "COL2": col2})
In [3]:
db
Out[3]:
In [4]:
db2 = db.copy(deep = True)
In [5]:
db2["COL3"] = pd.Series(["XX", "YY", "ZZ"])
In [6]:
db2
Out[6]:
In [ ]: