Reputation: 350
I have a data set of 256 columns and i want to add column names such as : ['N1', 'N2' ... 'N256']. Is there a quick way to do it ?
I have tried something like that :
df.columns = ['S' for x in range(1,257)]
But this code just adds the S in every column. How can i add the indexes also ?
Upvotes: 0
Views: 971