本文介绍了url NotFoundError与quandl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
代码:
import pandas as pd
import quandl
quandl.ApiConfig.api_key = 'wsnt2aKcnkNMJjdqqwTz'
pd = quandl.get('BATS / BATS_GOOGL')
print(df.head())
错误:
推荐答案
您不应在路径中使用空格;另外,您不要使用pd
作为变量名(请记住,您已经将熊猫导入为pd
),此外,现在,您要求的是head()
未定义的数据框df
.
You should not use spaces in the path; also, you should not use pd
as a variable name (remember, you have imported pandas as pd
), plus that, as is now, you are asking for the head()
of a dataframe df
that is nowhere defined.
尝试
df = quandl.get('BATS/BATS_GOOGL')
这篇关于url NotFoundError与quandl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!