Closed RedBullTrend closed 5 years ago
What is the value of str(abbv)
?
I guess that you entered a wrong stock code to quandl
Hello, thank you for answer. Here is my code:
import quandl as Quandl
import pandas as pd
import pickle
api_key = open('quandl_api_key.txt','r').read()
fiddy_states = pd.read_html('https://simple.wikipedia.org/wiki/List_of_U.S._states')
main_df = pd.DataFrame()
for abbv in fiddystates[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)
Then I saw the error above
Hi @RedBullTrend, it looks like you were trying to query data from the Freddie Mac Product. The error you saw is caused by invalid area code passed to quandl.get()
.
If you go to the documentation page of FMAC, you should see a table with area codes and corresponding quandl code, such as Abilene TX | 10180 | FMAC/HPI_10180
.
We are going to close off this issue but if you have any further questions about data products, feel free to contact our support team via the quandl.com website.
I am having the same issue. For example, in this page: https://blog.quandl.com/api-for-commodity-data I can see two example APIs listed
http://www.quandl.com/api/v3/datasets/WORLDBANK/WLD_TEA_MOMBASA http://www.quandl.com/api/v3/datasets/WORLDBANK/WLD_PHOSROCK
Both of them show the same error.
{
"quandl_error": {
"code": "QECx02",
"message": "You have submitted an incorrect Quandl code. Please check your Quandl codes and try again."
}
}
I can't tell if the web is defunct or I have forgotten something. I don't think I have, as I see no placeholder for a KEY or anything that suggests I am doing something wrong, so it looks like this is a bug
NotFoundError Traceback (most recent call last)