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:
[
Regards
I have this error message: AttributeError: 'NoneType' object has no attribute 'items'
when I run the code below:
[
import requests import pandas as pd wiki = 'https://en.wikipedia.org/wiki/List_of_postal_codes_of_Canada:_M' 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()As it is the first tile I have this error I need some help please,
Regards