Pandas has a few functions that work very similarly, which are .apply(), .applymap(), and .map().
Here is a simple explanation:
.map() and .applymap() are similar to .apply(), but .map() only works on Series and .applymap() only works on Dataframes. So I’d usually go ahead and use .apply() than these other two functions
I used .apply() for this small project as part of the on-going community project Prepping data.
I’d probably prefer using .apply() in most cases since it covers both Series and Dataframes.
Anyways, this was just a little introduction to .apply(), .applymap(), and .map() 🙂 Hope this helps!