5 faster alternatives to Pandas DataFrame apply()
Want to apply a function to all rows in a Pandas Dataframe?
Use these instead:
πΉ Pandas itertuples()
πΉ List Comprehension
πΉ Python map()
πΉ NumPy vectorize()
πΉ Pandas Vectorization
If you are not averse to including extra libraries on multi-core:
πΉ Pandarallel
πΉ Dask
πΉ Swifter
πΉ Numba
Comments
Post a Comment