Beyond apply(): Alternative Methods for Element-Wise Transformations in Pandas Series
Pandas Series and apply() functionA Pandas Series is a one-dimensional labeled array capable of holding any data type. It's similar to a list but with labels attached to each value