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

get_quote_table -> error 'DataFrame' object has no attribute 'append' #110

Open
sinianzhiren opened this issue Sep 18, 2023 · 2 comments · May be fixed by #113
Open

get_quote_table -> error 'DataFrame' object has no attribute 'append' #110

sinianzhiren opened this issue Sep 18, 2023 · 2 comments · May be fixed by #113

Comments

@sinianzhiren
Copy link

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

@dubilyer
Copy link

dubilyer commented Nov 6, 2023

same here :/
as a workaround I downgrade pandas version: pip install --force-reinstall -v "pandas==1.5.3

@lidanielm
Copy link

I believe pandas as deprecated DataFrame.append and Series.append and recommend pandas.concat instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants