pandas.DataFrame.style — pandas 3.0.0.dev0+2102.g839747c3f6 documentation (original) (raw)
- API reference
- DataFrame
- pandas.DataFrame.style
property DataFrame.style[source]#
Returns a Styler object.
Contains methods for building a styled HTML representation of the DataFrame.
See also
Helps style a DataFrame or Series according to the data with HTML and CSS.
Examples
df = pd.DataFrame({"A": [1, 2, 3]}) df.style
Please seeTable Visualization for more examples.