On 02/23/2013 09:40 PM, Matthew Johnson wrote:
For the sake of those who finds this thread -- the date / value pairs
can be printed by the following:
import fred
fred.key(fredKey)
gnpObvs = fred.observations('GNPCA')
for i in range(1, len(gnpObvs['observations']['observation'])):
print g
On 02/23/2013 09:40 PM, Matthew Johnson wrote:
For the sake of those who finds this thread -- the date / value pairs
> can be printed by the following:
>
> import fred
>
> fred.key(fredKey)
>
> gnpObvs = fred.observations('GNPCA')
>
> for i in range(1, len(gnpObvs['observations']['observation']
For the sake of those who finds this thread -- the date / value pairs
can be printed by the following:
import fred
fred.key(fredKey)
gnpObvs = fred.observations('GNPCA')
for i in range(1, len(gnpObvs['observations']['observation'])):
print gnpObvs['observations']['observation'][i]['date'],
Thanks very much; hopefully that's the boost i need to get rolling.
Best regards
matt
On 24/02/2013, at 10:40 AM, Robert Sjoblom wrote:
>> I am fairly sure i am querying the FRED API, but i am unsure how to
>> _access and use_ the dict objects that it is returning. For example,
>> how would i
> I am fairly sure i am querying the FRED API, but i am unsure how to
> _access and use_ the dict objects that it is returning. For example,
> how would i just print out values?
If it's a dict object, the standard dictionary behavior and methods
should work. I've not looked closely at the FRED API
I can see i was being unclear: i wish to replace my analysis in excel
with analysis in python.
I am fairly sure i am querying the FRED API, but i am unsure how to
_access and use_ the dict objects that it is returning. For example,
how would i just print out values?
Thanks for your help
On 24/02
On 23/02/13 21:56, Matthew Johnson wrote:
I am trying to make a move from excel to python. My main need is
economic data -- to do economic analysis.
Any particular reason for moving to Python? I know this is a
Python list and we are all Python fans but, frankly, it sounds
like your needs might
On 02/23/2013 04:56 PM, Matthew Johnson wrote:
Hi,
I am trying to make a move from excel to python. My main need is
economic data -- to do economic analysis.
I have found the FRED package, and appear to have connected to the St
Louis Fed's FRED and downloaded some data, but i'm not sure what to
> I am trying to make a move from excel to python. My main need is
> economic data -- to do economic analysis.
If you say Python and Excel the first thing that comes to mind is the xlrd
package
> The end game for me is making plots of variables, combining them, and
> doing regressions -- i