Data science with Python: Turn your conditional loops to Numpy vectors
Vectorization trick is fairly well-known to data scientists and is used routinely in coding, to speed up the overall data transformation, where simple mathematical transformations are performed over an iterable object e.g. a list. What is less appreciated is that it even pays to vectorize non-trivial code blocks such as…
Published in
4 min readDec 5, 2017