Skip to content

Tag: styler

Control how NAs are displayed with pandas styler

I am trying to use the na_rep argument of df.style.format() to control how cells with NaN are shown in the table. Documentation: https://pandas.pydata.org/docs/reference/api/pandas.io.formats.style.Styler.format.html Reproducible code: I get this error message. TypeError: format() got an unexpected keyword ar…