Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
What am i doing wrong with my algo?

Hey,
what am I doing wrong here?
I cant backtest from 2019 on I get

ValueError:Input contains NaN, infinity or a value too large for dtype('float64'). 

Line: 82 inadd_prices  
        comp = pca.fit_transform(y.transpose())

line 82:
comp = pca.fit_transform(y.transpose())