I have the following code (in PyCharm (MacOS)):
import pandas as pd fiddy_states = pd.read_html(\'https://simple.wikipedia.org/wiki/List_of_U.S._states\')
I got same error, it seems that my python3 was pointing to pandas in python2 (since I have not install pandas in python3). After doing pip3 install pandas and restarting a notebook, it worked fine.