I recently set up a new machine to aid in decreasing run times for fitting models and data wrangling.
I did some preliminary benchmarks and everything is mostly smoo
I figured out the my scipy module was incompatible with my windows 10 C++ redistributable version.
All i did was download the latest visual studio and installed the C++ redistributable update that is listed in the "individual components" section.
Once I installed that I restarted my computer and ran.
import scipy
scipy.test()
Once that was actually running I attempted my code block above and it fixed.
I think what this boils down to is installing an old build of windows 10 with a brand new version of python and scipy
This took a LONG time to solve and debug. Hopefully it helps.