diff --git a/generated_for_index/baskets.html b/generated_for_index/baskets.html new file mode 100644 index 000000000..01c736c0f --- /dev/null +++ b/generated_for_index/baskets.html @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
basket_IDfraud_flag
855170
830080
......
976390
959390
\ No newline at end of file diff --git a/generated_for_index/products.html b/generated_for_index/products.html new file mode 100644 index 000000000..152e4e88d --- /dev/null +++ b/generated_for_index/products.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
basket_IDcash_priceNbr_of_prod_purchas
855178891
8300813991
.........
9593911491
9593971
\ No newline at end of file diff --git a/skrub/_reporting/_patching.py b/skrub/_reporting/_patching.py index d0a1dc918..01755be89 100644 --- a/skrub/_reporting/_patching.py +++ b/skrub/_reporting/_patching.py @@ -23,19 +23,21 @@ def _patch( stashed_name = _stashed_name(method_name) if not hasattr(cls, stashed_name): setattr(cls, stashed_name, original_method) - setattr( - cls, - method_name, - lambda df: getattr( - TableReport( - df, - verbose=verbose, - plot_distributions=plot_distributions, - compute_associations=compute_associations, - ), - method_name, - )(), - ) + + def _patched(df, *args, **kwargs): + report = TableReport( + df, + verbose=verbose, + plot_distributions=plot_distributions, + compute_associations=compute_associations, + ) + + report._set_minimal_mode() + + return getattr(report, method_name)(*args, **kwargs) + + setattr(cls, method_name, _patched) + def _unpatch(cls, method_name):