python pandas 给dataframe添加列名

时间:2020-11-10 23:10:57   收藏:0   阅读:709
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))

技术分享图片

 

原文:https://www.cnblogs.com/red-27/p/13956409.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!