Skip to content

Creating a Pandas Data Frame from a HTML dropdown list

Importing required modules

We will start by importing two python modules: Pandas and Beautiful Soup.

#Loading required modules.
from bs4 import BeautifulSoup
#import requests
import pandas as pd

Output