Returns a Styler object.
Contains methods for building a styled HTML representation of the DataFrame.
See also
io.formats.style.StylerHelps style a DataFrame or Series according to the data with HTML and CSS.
Examples
>>> df = pd.DataFrame({'A': [1, 2, 3]})
>>> df.style
Please see Table Visualization for more examples.
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.DataFrame.style.html