df_org = pd.read_csv(path) print(df_org.head(5)) df_org.columns = ["UserID", "Gender", "Age", "Attribution", "Type", "StartTime", "EndTime", "Log", "Lat"] print(df_org.head(5))
python pandas 给dataframe添加列名
原文:https://www.cnblogs.com/red-27/p/13956409.html