import pandas as pd def disease_info(disease_index): df = pd.read_excel(r"disease_info.xlsx") df = df[df["Disease"] == disease_index].iloc[0] html_text = "" html_text += "
" + str(df["Diagnosis"]) + "
" + "" + str(df["Cause"]) + "
" + "" + str(df["Symptoms"]) + "
" + "" + str(df["Treatment"]) + "
" + "