Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- marks = {'student x':[10,20,30,40,50,60],
- 'student Y':[80,90,100,10,20,30],
- 'student Z':[40,50,60,70,80,90]}
- df = pd.DataFrame(marks) #Printing original
- df.rename(columns={'student x':'Week_Number'})
Add Comment
Please, Sign In to add comment