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

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

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

df = pd.DataFrame(columns = column_names)

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