这是indexloc提供的服务,不要输入任何密码
Skip to content

stocks/fa/analysis returns empty dataframe instead of error when no data #3858

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

Merged
merged 5 commits into from
Jan 4, 2023

Conversation

skhan877
Copy link
Contributor

@skhan877 skhan877 commented Jan 2, 2023

Description

Quick and unsophisticated fix for Bug #3822

Now just checks if resulting list is empty and returns empty DataFrame. In the terminal, this will trigger printing a message (filings not found) and in SDK this will just return a blank DataFrame.

No error message appears in either case but if you'd prefer some sort of message in the notebook then please say!

How has this been tested?

Tested various US and non-US tickers (and some made up tickers).

stocks -> load coin -> fa -> analysis

In terminal:
image

In notebook:
image

As expected, COIN should not return results.
Apple, however, should run just fine...

stocks -> load aapl -> fa -> analysis

In terminal:
image

In notebook:
image

@reviewpad reviewpad bot added the feat XS label Jan 2, 2023
Copy link
Contributor

@jmaslek jmaslek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Just need to fix the linter. Running black ./ should auto fix it!

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

Successfully merging this pull request may close these issues.

2 participants