result += "<td style="border:1px solid black;padding:4px;border-collapse: collapse;">"
result += rounder(class_stat[i][j], digit) + "</td>\n"
result += "<td style="border:1px solid black;padding:4px;border-collapse: collapse;text-align:left;">" + \
PARAMS_DESCRIPTION[i].capitalize() + "</td>\n"
result += "</tr>\n"
result += "</table>\n"
return result
After Change
result += "<td style="border:1px solid black;padding:4px;border-collapse: collapse;">"
result += rounder(class_stat[i][j], digit) + "</td>\n"
params_text = PARAMS_DESCRIPTION[i]
if i not in CAPITALIZE_FILTER:
params_text = params_text.capitalize()
result += "<td style="border:1px solid black;padding:4px;border-collapse: collapse;text-align:left;">" + \
params_text + "</td>\n"
result += "</tr>\n"
result += "</table>\n"