Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: single positional indexer is out-of-bounds #12

Open
PowerPress opened this issue Dec 8, 2021 · 1 comment
Open

IndexError: single positional indexer is out-of-bounds #12

PowerPress opened this issue Dec 8, 2021 · 1 comment

Comments

@PowerPress
Copy link

Received the following error:

pair = ['ethereum','nexus-governance-token']
apr = 553.94
dft.farmSimulate(pair, apr, start='2021-11-30')
Downloading ethereum
Downloading nexus-governance-token
Traceback (most recent call last):
File "<pyshell#35>", line 1, in
dft.farmSimulate(pair, apr, start='2021-11-30')
File "C:\Users\jadmin\AppData\Local\Programs\Python\Python39\lib\site-packages\defi\defi_tools.py", line 276, in farmSimulate
farm = farm.divide(farm.iloc[0])
File "C:\Users\jadmin\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\indexing.py", line 931, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "C:\Users\jadmin\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\indexing.py", line 1566, in _getitem_axis
self._validate_integer(key, axis)
File "C:\Users\jadmin\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\indexing.py", line 1500, in _validate_integer
raise IndexError("single positional indexer is out-of-bounds")
IndexError: single positional indexer is out-of-bounds

@gauss314
Copy link
Owner

Maybe it was a fail in coingecko API, now this example is working ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants