pandas / 1.4.0 / reference / api / pandas.io.formats.style.styler.set_caption.html /

pandas.io.formats.style.Styler.set_caption

Styler. set_caption ( caption ) [source]

Set the text added to a <caption> HTML element.

Parameters
caption :str, tuple

For HTML output either the string input is used or the first element of the tuple. For LaTeX the string input provides a caption and the additional tuple input allows for full captions and short captions, in that order.

Returns
self :Styler

© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.4.0/reference/api/pandas.io.formats.style.Styler.set_caption.html