We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f961e6 commit ac640dbCopy full SHA for ac640db
pandas/io/formats/format.py
@@ -939,17 +939,18 @@ def to_latex(
939
"""
940
from pandas.io.formats.latex import LatexFormatter
941
942
- return LatexFormatter(
+ latex_formatter = LatexFormatter(
943
self,
944
- column_format=column_format,
945
longtable=longtable,
+ column_format=column_format,
946
multicolumn=multicolumn,
947
multicolumn_format=multicolumn_format,
948
multirow=multirow,
949
caption=caption,
950
label=label,
951
position=position,
952
- ).get_result(buf=buf, encoding=encoding)
+ )
953
+ return latex_formatter.get_result(buf=buf, encoding=encoding)
954
955
def _format_col(self, i: int) -> List[str]:
956
frame = self.tr_frame
0 commit comments