add column as index pandas

49

add column as index pandas -

df['new_col'] = range(1, len(df) + 1)

Comments

Submit
0 Comments