Use swifter for Faster Pandas in Python
A single word can make a difference…
Boost the speed of Pandas with a single word added to the code.
Use the swifter package (pip install swifter)
Python users probably use Pandas for data manipulation in Data Science.
When applying functions (apply) to columns, processing by Pandas is based on loops. Therefore, the larger the dataset, the longer the execution time — line by line, repeating the operation.