import pandas as pd
import re
f1=pd.read_excel('01.xlsx')
f1.columns
#Index(['A', 'B'], dtype='object')
f1.columns=['C',"D"] #重命名
f1.columns
#Index(['C', 'D'], dtype='object')
python 列表标题重命名
猜你喜欢
转载自blog.csdn.net/weixin_42342968/article/details/83509681
今日推荐
周排行