在 Pandas 教程的远程数据访问代码中, "F" 是什么意思?
In the remote data access code for Pandas tutorial, what does "F" mean?
In [12]: import pandas_datareader.data as web
In [13]: import datetime
In [14]: start = datetime.datetime(2010, 1, 1)
In [15]: end = datetime.datetime(2013, 1, 27)
In [16]: f = web.DataReader("F", 'yahoo-dividends', start, end)
在为 pandas_datareader
. However, the functions themselves are pretty well documented in the source code. Looking at the source for DataReader
, the first parameter is name
生成的文档中遗憾地缺少 API 文档:
the name of the dataset. Some data sources (google, fred) will accept a list of names.
这不是提供信息,而是更深入地挖掘 类 DataReader
实际上 returns 的对象,例如 YahooDailyReader
, and how they are constructed, the first parameter is the stock symbol or symbols:
Single stock symbol (ticker), array-like object of symbols or DataFrame with index containing stock symbols.
在这种情况下,'F'
是 Ford 的符号。使用 yahoo 数据源,您可以选择提供单个字符串或可迭代的字符串以一次获得多个输出。
In [12]: import pandas_datareader.data as web
In [13]: import datetime
In [14]: start = datetime.datetime(2010, 1, 1)
In [15]: end = datetime.datetime(2013, 1, 27)
In [16]: f = web.DataReader("F", 'yahoo-dividends', start, end)
在为 pandas_datareader
. However, the functions themselves are pretty well documented in the source code. Looking at the source for DataReader
, the first parameter is name
生成的文档中遗憾地缺少 API 文档:
the name of the dataset. Some data sources (google, fred) will accept a list of names.
这不是提供信息,而是更深入地挖掘 类 DataReader
实际上 returns 的对象,例如 YahooDailyReader
, and how they are constructed, the first parameter is the stock symbol or symbols:
Single stock symbol (ticker), array-like object of symbols or DataFrame with index containing stock symbols.
在这种情况下,'F'
是 Ford 的符号。使用 yahoo 数据源,您可以选择提供单个字符串或可迭代的字符串以一次获得多个输出。