Easiest way to rename all columns to add index position

后端 未结 0 1405
被撕碎了的回忆
被撕碎了的回忆 2020-12-10 11:28

I have a data frame of 50 columns in it, and I want to rename each column to include the index position.

so columnA would be columnA_0, columnB would be columnB_1, an

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