I have a DataFrame with indexes 1,2,3.
Name
1 Rob
2 Mark
3 Alex
I want to duplicate that index in a new column so it gets like this:
Name Number
1 Rob 1
2 Mark 2
3 Alex 3
Any ideas?
EDIT
I forgot one important part: those items in the Numbers column should be turned into string
df['Number'] = df.index.astype(str)