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

Index out of bounds in .ipynb cell #4 #6

Open
datatalking opened this issue Aug 25, 2021 · 0 comments
Open

Index out of bounds in .ipynb cell #4 #6

datatalking opened this issue Aug 25, 2021 · 0 comments

Comments

@datatalking
Copy link
Contributor

It seems to be a randomly occurring event that cell four is run it generates the following error

Screen Shot 2021-08-25 at 10 47 30 AM

I will work later this week to add an 'issue template' for ongoing use, but I'm attempting to run this inside a VM on macOS Catalina, in PyCharm using a JupyterNotebook cell. It was running this weekend just fine, although fine being subjective that it only displayed data up to 2018, but it worked all 1500 lines were working.

I'm wondering if this is a 'delicate data' issue that comes with MorningStar or maybe do I have to instantiate the SQL database? For the MorningStar data, I have found two rough methods to access the data via a scrape, one is just table values the other is pandas data frame ready.

How can the 'cutoff_date = df_updated_ct[df_updated_ct['ticker'] > 100].index[0] - DT.timedelta(days=cutoff_days)' generate a zero index value.

Maybe we should look at writing some tests that are run to ensure data is being grabbed and that the database is active? Will continue to work on this.

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