Source code for linearmodels.compat.statsmodels
from __future__ import annotations
from statsmodels.iolib import summary
[docs]
class Summary(summary.Summary):
[docs]
def as_html(self) -> str:
"""
Return tables as string
Returns
-------
str
concatenated summary tables in HTML format
"""
html = summary.summary_return(self.tables, return_fmt="html")
if self.extra_txt is not None:
html = html + "<br/><br/>" + self.extra_txt.replace("\n", "<br/>")
return html