添加表头

import pandas as pd
df = pd.read_csv('tf.csv',header=None,names=['a','b','c','d','e','f','g','h','i','j','k'])
df.to_csv('tf.csv',index=False)
"""
tf.csv是你当前目录下的csv文件名
names后面是你想要设置的表头
切记:header值为None,不能是False,否则会报错
"""