-
Notifications
You must be signed in to change notification settings - Fork 144
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
dft.geckoHistorical('bitcoin') #8
Comments
Es alguna actualizacion de pandas de tu anaconda local, por eso no tenes el error en colab, te sugiero abrir el anaconda prompt y ejecutar esto: conda update --all va a tardar 15 minutos pero luego de eso deberia andar bien |
Actualice conda y cuando corro import yfinance as yf cmap_jp = LinearSegmentedColormap.from_list('Custom', ('red','black','green'), N=256) df = yf.download('GDX', auto_adjust=True, progress=False) plt.style.use('dark_background') sc = lambda y: (y - y.min()) / (y.max() - y.min()) sns.heatmap(tabla, annot=True, ax=ax_l, cmap=cmap_jp, fmt='.2%', vmax=0.15, vmin=-0.15, cbar_kws={"shrink": 0.6}) El kernel se muere y no ejecuta, sin embargo otros codigos los corre sin problema |
Anda borrando lineas de abajo hacia arriba a ver cual es la conflictiva, es raro a mi me corre lo mas bien, seguro es alguna libreria en tu instalacion que te esta generando un conflicto |
Buenas, intento correr el codigo en Spyder:
dft.geckoHistorical('bitcoin')
y me da el error
dft.geckoHistorical('bitcoin')
Traceback (most recent call last):
File "", line 1, in
dft.geckoHistorical('bitcoin')
File "C:\Users\gmartinez\Anaconda3\lib\site-packages\defi\defi_tools.py", line 227, in geckoHistorical
df[0] = pd.to_datetime(df[0], unit='ms')
File "C:\Users\gmartinez\Anaconda3\lib\site-packages\pandas\core\frame.py", line 2938, in setitem
self._set_item(key, value)
File "C:\Users\gmartinez\Anaconda3\lib\site-packages\pandas\core\frame.py", line 3001, in _set_item
NDFrame._set_item(self, key, value)
File "C:\Users\gmartinez\Anaconda3\lib\site-packages\pandas\core\generic.py", line 3624, in _set_item
self._data.set(key, value)
File "C:\Users\gmartinez\Anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 1086, in set
for blkno, val_locs in libinternals.get_blkno_placements(blknos, group=True):
File "pandas_libs\internals.pyx", line 448, in get_blkno_placements
File "pandas_libs\internals.pyx", line 352, in pandas._libs.internals.get_blkno_indexers
ValueError: Buffer has wrong number of dimensions (expected 1, got 0)
Cuando lo hago en colab no me sucede esto.
The text was updated successfully, but these errors were encountered: