I am trying to get an iteration of every state from quandl, however unless I just have the query be print(X)
, it only returns one string for abbv
instead of listing all 50 states and joining them together. Any reason for this?
Thanks.
for abbv in fiddy_states[0][0][1:]:
query = "FMAC/HPI_"+str(abbv)
df = quandl.get(query, authtoken=api_key)
if main_df.empty:
main_df = df
else:
main_df = main_df.join(df)