Posts by MarcusMartins • 11 points
2 posts
-
0
votes0
answers43
viewsQ: creating a dataframe from pairs of columns in Python
Using the yfinance library I imported data from a list of 80 assets: tickers=['xxx','yyy'] data = yf.download(tickers, start="2020-01-01", end="2020-12-04") data = data['Close'] I used a function…
-
0
votes0
answers49
viewsQ: Creating new dataframes and using merge
I used yahooquery to import a historical data series of 100 exchange-traded assets. I created a dataframe with this data for a period of 6 months: df = tickers.history(period='6mo', interval="1d") I…