Rename columns in pandas // Change the name of Python pandas columns and rows

preview_player
Показать описание
Change the names of your Python pandas columns and rows with this tutorial about the pandas rename method. This video from my "Pandas Tips" series shows you how to update your column names with the rename command by setting axis=1 or adding the columns argument. I'll also show you how to use pandas rename to update your row index labels. Level up your skills by including the rename inplace argument to make your changes permanent. You can also rename multiple columns or rows at once using the pandas rename mapper, and I demo how to do this as well. And finally, you'll learn how to include the errors option to alert you if one of the names in your mapper isn't in your pandas dataframe. Check out this video to improve your Python pandas knowledge and make the most out of the pandas rename method to change your column (or row) labels!

0:00 Introduction
0:34 Set up and load data
1:01 Rename a single column
3:12 Rename a single row
4:55 Level UP! inplace
6:08 Rename multiple items
8:47 Raise errors
10:13 Conclusion & BLOOPS

💻 Github CODE 💻

🎥 Related VIDEOS 🎥

📖 BOOKS about pandas from my Amazon Storefront 📖

☕ Buy me a COFFEE ☕
If you have enjoyed the content presented in this video and are able, consider buying a virtual cup of coffee to keep my channel going!

#python #pandas #pythonprogramming
Рекомендации по теме