📜  如何将列表作为列添加到数据框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:10.217000             🧑  作者: Mango

代码示例1
Create a list containing new column data
Insert the data into the DataFrame using DataFrame. assign(column_name = data) method. 
It returns a new data frame.