Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Cannot convert NA to Integer

The code keeps saying that there is an error where it can't convert NA to Integers, but when I run the pipeline there is no NAs in the results. Where is the error coming from, and what part of the code should I change to make it run?

Thanks,
Taha