as a real life experiment (not for sklearn) would you consider testing parakeet https://github.com/iskandr/parakeet
to speed up this function? I am really curious to see what it gives. Thanks.