Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Market Structure

I'm trying to adapt the market structure visualization from SciKit Learn into Quantopian (also referenced this community post), but I run into an error with certain long time periods. Runs over a few months seem to work but this example of about a year does not. Can anyone with more experience in this area take a look?