3 ms·
His example of a function which is unreadable, is pretty typical. It still might be slower than a tight loop in C, but it’s only unreadable the first time you w
by marmaduke 9y ago
His example of a function which is unreadable, is pretty typical. It still might be slower than a tight loop in C, but it’s only unreadable the first time you write something like that.
That said, Numba would be a natural tool here.
- klibertp 9y agoI'll buy you a beer if you can derive the original formula from this code.
- marmaduke 9y agoI admit I recognized only some general NumPy things like masks, unique, reductions, outer etc: I don’t use Pandas and not sure what the non-Numpy stuff does. I still don’t think it’s more obscure than equivalent for loops or FP folds or similar.