url NotFoundError与quandl [英] url NotFoundError with quandl

查看:126
本文介绍了url NotFoundError与quandl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码:

import pandas as pd

import quandl
quandl.ApiConfig.api_key = 'wsnt2aKcnkNMJjdqqwTz'

pd = quandl.get('BATS / BATS_GOOGL')

print(df.head())

错误:

NotFoundError :(状态400)(Quandl错误QECx01),我们无法识别您请求的URL:/api/v3/datasets/BATS/BATS_GOOGL/data.请检查您的URL,然后重试.

NotFoundError: (Status 400) (Quandl Error QECx01) We could not recognize the URL you requested: /api/v3/datasets/BATS / BATS_GOOGL/data. Please check your URL and try again.

推荐答案

您不应在路径中使用空格;另外,您不要使用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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆