Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.io.formats.style.Styler.set_caption#

Styler.set_caption(caption)[source]#

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

Parameters:
captionstr, tuple, list

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

Returns:
Styler

Examples

>>>df=pd.DataFrame({'A':[1,2],'B':[3,4]})>>>df.style.set_caption("test")

Please see:Table Visualization for more examples.


[8]ページ先頭

©2009-2025 Movatter.jp