Mar-12-2021, 05:18 PM
Hi everyone,
I have this error message: AttributeError: 'NoneType' object has no attribute 'items'
when I run the code below:
[
As it is the first tile I have this error I need some help please,
Regards
I have this error message: AttributeError: 'NoneType' object has no attribute 'items'
when I run the code below:
[
1 2 3 4 5 6 7 8 9 |
import requests import pandas as pd wikipedia_page = requests.get(wiki) df_raw = pd.read_html(wikipedia_page.content, header = 0 )[ 0 ] df_new = df_raw[df_raw.Borough ! = 'Not assigned' ] df_new.head() |
Regards