代码:
import pandas as pd
import quandl
quandl.ApiConfig.api_key = 'wsnt2aKcnkNMJjdqqwTz'
pd = quandl.get('BATS / BATS_GOOGL')
print(df.head())
错误:
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
作为变量名(请记住,您已经将pandas作为pd
导入),另外,正如现在一样,您要求的是没有定义的数据帧head()
。你知道吗尝试
相关问题 更多 >
编程相关推荐