Want to replace values in a Pandas data frame? Use the "replace" method. But did you know that "replace" can be invoked in a number of different ways, allowing you to specify multiple values — and even replace different values in different columns? In this video, I show you how to achieve just that, using a variety of different methods.
The Jupyter notebook from this video, and all of my videos, is at GitHub: https://github.com/reuven/youTube-not...
Don't forget my free, weekly "Better developers" newsletter, with practical Python articles every Monday: https://BetterDevelopersWeekly.com/