Open sinianzhiren opened 1 year ago
site = "https://finance.yahoo.com/quote/" + ticker + "?p=" + ticker
tables = pd.read_html(requests.get(site, headers=headers).text) data = tables[0].append(tables[1]) data.columns = ["attribute" , "value"]
May I ask why an error was reported? Is it a Pandas version issue
same here :/ as a workaround I downgrade pandas version: pip install --force-reinstall -v "pandas==1.5.3
pip install --force-reinstall -v "pandas==1.5.3
I believe pandas as deprecated DataFrame.append and Series.append and recommend pandas.concat instead.
site = "https://finance.yahoo.com/quote/" + ticker + "?p=" + ticker
May I ask why an error was reported? Is it a Pandas version issue