You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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'
The text was updated successfully, but these errors were encountered: