Advertisement
elena1234

format index in Python

Jan 4th, 2023 (edited)
1,228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | Source Code | 0 0
  1. new_index = ["Medal_No{}".format(i) for i in range(1,summer.index.size+1)]
  2. new_index
  3. summer.index = new_index
  4.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement