Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How do I run calculation on data like external economic indicator data ?

I'm a seasoned programmer, but new to this platform. I'm attempting to take a moving average on some non-asset data. Basically all my CSV has is a date and a value. This far I've been able to import the CSV using fetch_csv and plot that information. What I want to do now is calculate the moving average over several months and compare that to an asset. I was contemplating using the history() then myhistory.mean(), but it seems that the history function is only available to assets that conform to the format the Quantopian dictates. Am I misunderstanding how this works ? is there a way to mutate my data into the correct format so I can use these functions? or is there something like history() for non-assets imported data.