DECROMAX

rename multiple cols

Jan 10th, 2022 (edited)
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. # rename multiple cols by passing dict of col names to be changed
  2.  
  3. df.rename(columns={"col1": "column_1", "col2": "column2"}, inplace=True)
Add Comment
Please, Sign In to add comment