### 导入模块import numpy as npimport pandas as pdimport matplotlib.pyplot as plt test = pd.DataFrame({'a':[11,22,33],'b':[44,55,66]})""" a b0 11 441 22 552 33 66"""
更改列名方法一:rename
test.rename(columns={'a':'c'},inplace=True)""" c b0 11 441 22 552 33 66""""