Vectorized solutions
Why we should always try the vectorised implementation
Last updated
Was this helpful?
Why we should always try the vectorised implementation
Last updated
Was this helpful?
Data Science we often deal with big data. Data manipulations can easily take up loads of computer time and memory when not efficiently coded. In order to fully take advantage of computation power of computers, the state of art of implementation of algorithm is vectorising all the manipulations. This allows you to achieve parallelised computation using multiple cpu's at once. The libraries pandas and numpy allow vectorised manipulations. This makes the computations easily 2500 times faster. So stop looping over rows and columns. Use the pandas methods!