我有一个返回结果表的 mysql 查询。比如下面的:

我想要实现的是当最后一列的值为“MM”时突出显示整行。
我过去使用过一小段 JS 代码,它只适用于单个单元格,而不是整行。
我的代码是这样的:
import pandas as pd
from pandas import DataFrame
from pandas.tseries.offsets import BDay
import sys
import mysql.connector
import time
import datetime
from datetime import date,timedelta
import os
## testing dates
currentdate = pd.datetime.today()
today = currentdate.strftime("%Y-%m-%d")
yesterday = currentdate - BDay(1)
yest = yesterday.strftime("%Y-%m-%d")
#print today
#print yest
## where to dump the file
develop_path = "/var/www/html/exDiv/"
report_file = "exDivReport." + today + ".html"
## function to get data and print out
def …Run Code Online (Sandbox Code Playgroud)