Renaming columns name in a loop

前端 未结 0 962
日久生厌
日久生厌 2021-02-07 13:56

I have a dataframe where columns are 0,1,2,...23. And if I do df[0] I have several numbers. I want to rename the columns in a loop so column 0 is "hour 0"

相关标签:
回答
  • 消灭零回复
提交回复
热议问题