📜  如何在 python 代码示例中创建数据框的新标头

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

代码示例1
pythonCopy# 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)