I want to import a portion of html table into a dataframe.
Here is the table: In the below, I want to import only "Total Electric Industry"

I am running below code in the Google colab:
# Total residential customers
us_res_html = 'https://www.eia.gov/electricity/annual/html/epa_02_01.html'
us_res = pd.read_html(us_res_html)
us_res = us_res[1]
print(type(us_res))
print(us_res.columns)
print(us_res.dtypes)
# Consider only the total electric industry table
# The table starts with "Total Electric Industry"
# Next table starts with "Full-Service Providers"
# These texts were repeated in all the columns; Hence, search in the first column
start_idx = us_res[us_res[us_res.columns[0]]=="Total Electric Industry"].index
end_idx = us_res[us_res[us_res.columns[0]]=="Full-Service Providers"].index
Present output:
Int64Index([], dtype='int64')