patch_display#

skrub.patch_display(pandas=True, polars=True)[source]#

Replace the default DataFrame HTML displays with skrub.TableReport.

This function replaces the HTML displays (what is shown when an object is the output of a jupyter notebook cell) of pandas and polars DataFrames with a TableReport.

It can be undone with skrub.unpatch_display().

Parameters:
pandasbool, optional (default=True)

If False, do not override the displays for pandas dataframes.

polarsbool, optional (default=True)

If False, do not override the displays for polars dataframes.

See also

unpatch_display

Undo the change made by this function.

TableReport

Directly create a report from a dataframe.