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

For loop para la descarga de información #2

Open
salgozino opened this issue Jan 26, 2020 · 1 comment
Open

For loop para la descarga de información #2

salgozino opened this issue Jan 26, 2020 · 1 comment

Comments

@salgozino
Copy link

No es necesario hacer el for loop, dado que yfinance soporte que le ingreses múltiples tickers y te devuelve el dataframe completo con la información completa de todos.

Básicamente el for loop se puede cambiar por la siguiente línea
df = yf.download(cartera, period='10y')['Adj Close']

@gauss314
Copy link
Owner

Excelente, muchas gracias

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