Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Getting NaN when attempting to pull fundamental data using pipeline: HELP!

Hi there,
I have run into a problem in the notebook environment when trying to view the data values within my Pipeline. I am relatively new to Quantopian and programming, so bare with me as I attempt to explain my problem (my notebook is attached).

I am trying to create an algorithm that trades purely on Fundamental data. However, when I go to view the output values for some of the Fundamentals that I have put into my pipeline, I am getting a NaN in the cell boxes. Essentially, what I need to know is how to get rid of the NaN either by defining the variables in a different way (ex. I currently have: 'REV = Latest([Fundamentals.total_revenue])' and am a little concerned this is what is causing the issue since the 'latest' data of some companies may not be released to the public yet), or by putting in some parameter that does not let a NaN value show up.

I have a suspicion that the window_length function may allow me to bypass this issue by lengthening the time frame in which the Fundamental data is pulled, but I have no idea how to properly use that function within my code.

If you have any ideas, please help!

Justin