Pandas: read_html

后端 未结 5 1574
日久生厌
日久生厌 2021-02-18 13:09

I\'m trying to extract US states from wiki URL, and for which I\'m using Python Pandas.

import pandas as pd
import html5lib
f_states = pd.read_html(\'https://si         


        
5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-18 14:05

    You need to install lxml using pip.

    pip install lxml
    

    this worked for me.

提交回复
热议问题