Good afternoon. I would like to change the phrase "Continued on next page" from df.to_latex.
when running
import pylatex to pl
pl.NoEscape(dff1.to_latex(longtable=True, index=False, multicolumn=True, multirow=True,caption='Tabla de anexos'))
turns out this
\begin{longtable}{lrrrrrr}
\caption{Puntos criticos expuestos a peligro}\\
\toprule
{} & \multicolumn{3}{l}{ANA} & \multicolumn{3}{l}{INGEMMET} \\
{} & Nivel 2 & Nivel 3 & Nivel 4 & Nivel 2 & Nivel 3 & Nivel 4 \\
\midrule
\endfirsthead
\caption[]{Puntos criticos expuestos a peligro} \\
\toprule
{} & \multicolumn{3}{l}{ANA} & \multicolumn{3}{l}{INGEMMET} \\
{} & Nivel 2 & Nivel 3 & Nivel 4 & Nivel 2 & Nivel 3 & Nivel 4 \\
\midrule
\endhead
\midrule
\multicolumn{7}{r}{{Continued on next page}} \\
\midrule
\endfoot
\bottomrule
\endlastfoot
Ancash & 13 & 0 & 0 & 113 & 0 & 0 \\
Apurimac & 9 & 0 & 0 & 39 & 0 & 0 \\
Arequipa & 2 & 0 & 0 & 13 & 0 & 0 \\
Ayacucho & 34 & 0 & 0 & 28 & 0 & 0 \\
Cusco & 59 & 0 & 0 & 68 & 0 & 0 \\
Huancavelica & 43 & 0 & 0 & 60 & 0 & 0 \\
Hutnuco & 13 & 0 & 0 & 0 & 0 & 0 \\
Junin & 16 & 0 & 0 & 0 & 0 & 0 \\
Pasco & 17 & 0 & 0 & 23 & 0 & 0 \\
Puno & 7 & 0 & 0 & 2 & 0 & 0 \\
Huanuco & 0 & 0 & 0 & 32 & 0 & 0 \\
Junmn & 0 & 0 & 0 & 41 & 0 & 0 \\
Lima & 0 & 0 & 0 & 61 & 0 & 0 \\
\end{longtable}
and what I'm looking for is that \multicolumn{7}{r}{{Continued on next page}} \
be changed by \multicolumn{7}{r}{{Siguiente pagina}} \
try pl.NoEscape(df_zc_ana_ingmmet.to_latex(longtable=True,index=True,multicolumn=True,multirow=True, caption='Puntos criticos expuestos a peligro',multicolumn_format='{7}{r}{{Continua en la siguiente pagina}}'))
but i didn't succeed