You can apply conditional formatting, the visual styling of a DataFrame depending on the data within, by using the DataFrame.style property. This is a property that returns a Styler object, which has useful methods for formatting and displaying DataFrames.

The styling is accomplished using CSS. You write functions that take DataFrame s or Series , and return like-indexed DataFrames or Series with CSS "attribute: value" pairs for the values. You can build up your styles incrementally using method chains, before rending.