We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6955c commit 17d632fCopy full SHA for 17d632f
folioflex/portfolio/wrappers.py
@@ -311,7 +311,7 @@ def get_sp500_tickers(self) -> pd.DataFrame:
311
request = requests.get(url, headers=_get_header(), timeout=10)
312
request.raise_for_status()
313
314
- sp500_tickers = pd.read_html(StringIO(request.text))[0][
+ sp500_tickers = pd.read_html(StringIO(request.text))[1][
315
["Symbol", "GICS Sector"]
316
]
317
0 commit comments