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

facing issue in execution #1

Open
rohaantahir opened this issue Oct 13, 2020 · 0 comments
Open

facing issue in execution #1

rohaantahir opened this issue Oct 13, 2020 · 0 comments

Comments

@rohaantahir
Copy link

Hi I liked your work. And wanted to use your work for learning purpose. I am facing the following error during execution of the third cell of notebook. can you please address this issue?
_election_results_df(html)
29 tag = soup.find(text=re.compile("STATE*"))
30 # navigate to the table row tag
---> 31 #tag = tag.parent.parent.parent
32 # table_cols = [x.text.strip() for x in tag.find_all("td")]
33 # get the candidate names or parti affiliation

AttributeError: 'NoneType' object has no attribute 'parent'

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