📜  在 Pandas 中向表中添加表头 - Python 代码示例

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

代码示例1
# python 3.x
import pandas as pd
import numpy as np

df = pd.DataFrame(data=np.random.randint(0, 10, (6,4)))

df.columns=["a", "b", "c", "d"]
print(df)