Closed masmox closed 8 months ago
I hope to know the solution, too. I think this problem is from yahoo change. could anyone has idea? thanks first.
ffn should be compatible with Python 2.7.
I also ran into problem. I use Jupyter notebook. Here is my code:
import ffn prices = ffn.get('aapl', start='2010-01-01')
I got "IndexError: tuple index out of range". Does it mean the code could actually acquire data, but somehow the format of data is not what the code had expected?
Ciao, same error here with the code "pasted" exactly as in the example : import ffn returns = ffn.get('aapl,msft,c,gs,ge', start='2010-01-01').to_returns().dropna() returns.calc_mean_var_weights().as_format('.2%') IndexError: tuple index out of range Thanks in advance for support Ciao
Had the same issue today.
I use JupyterNotebook as part of an anaconda environment. Running conda update --all
on terminal solved it.
Hello,
I'm using Python 3.8 and PyCharm 2021.1.1. When I use ffn (0.3.6) to get aapl ticker using the following code:
import ffn
dataset_ffn = ffn.get('aapl', start='2018-01-01') dataset_ffn.columns = ["open", "high", "low", "close"] print(dataset_ffn.tail(10))
the following messages I catch
Traceback (most recent call last): File "C:/Users/username/PycharmProjects/Examples/ffn_example.py", line 5, in
dataset_ffn = ffn.get('aapl', start='2018-01-01')
File "C:\Users\username\Anaconda3\lib\site-packages\decorator.py", line 231, in fun
return caller(func, *(extras + args), **kw)
File "C:\Users\username\Anaconda3\lib\site-packages\ffn\utils.py", line 20, in _memoize
if args[func.code.co_varnames.index(refresh_kw)]:
IndexError: tuple index out of range
Process finished with exit code 1
Also, if I use Jupyter Notebook I catch the same error.
Please can you give me a support?
Thanks.