📜  将空列添加到数据框 pandas - Python 代码示例

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

代码示例2
column_names = ["a", "b", "c"]

df = pd.DataFrame(columns = column_names)

df["a"] = [num for num in range(1, 5)]