Inline Side-by-side Side-by-side Markdown
In short
Use vectorization if possible If an operation can't be vectorized - use list comprehensions If you need a single object representing the entire row - use itertuples If the above is too slow - try swifter.apply swifter.apply If it's still too slow - try Cython a Cython routine Benchmark Benchmark
In short
Use vectorization if possible If operation can't be vectorized - use list comprehensions If you need a single object representing entire row - use itertuples If the above is too slow - try swifter.apply If it's still too slow - try Cython routine Benchmark
In short
Use vectorization if possible If an operation can't be vectorized - use list comprehensions If you need a single object representing the entire row - use itertuples If the above is too slow - try swifter.apply If it's still too slow - try a Cython routine Benchmark