pandas.io.formats.style.Styler.set_caption
pandas 3.1.1 · Styling · method
Attach a caption to the rendered table.
Call syntax
Styler.set_caption(caption)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
caption |
Required Positional or keyword |
str, tuple, list Provide the title or caption used in rendered output. |
Returns
Styler