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_analysts_info not working #120

Open
RRRRRRR-777 opened this issue May 25, 2024 · 0 comments
Open

get_analysts_info not working #120

RRRRRRR-777 opened this issue May 25, 2024 · 0 comments

Comments

@RRRRRRR-777
Copy link

analysts = si.get_analysts_info("AAPL")
print(analysts)
'''
output
{0:         0   1
0    Date NaN
1   Close NaN
2    Open NaN
3    High NaN
4     Low NaN
5  Volume NaN}
'''

When I run get_analysts_info, it outputs the above and I cannot get the analyst value, is this my problem?

In the meantime, I have modified the following as a warning occurred.
Warning: FutureWarning: Passing literal html to 'read_html' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
Modified Code

# yahoo_fin/stock_info.py line 563
tables = pd.read_html(StringIO(requests.get(analysts_site, headers=headers).text))
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

1 participant