Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pandas Profiling Hide Tabs

Is there a way to display only specific tabs in the pandas profiling report output?

I am using pandas_profiling.ProfileReport(data) but I only need the Overview, Variables and Sample tabs. So is there an option to hide the other tabs e.g. something like pandas_profiling.ProfileReport(data,correlations=False,missing_values=False) and only display specific parts of the report?

like image 301
Anthalon Avatar asked Jul 27 '26 09:07

Anthalon


1 Answers

Yes, you should be able to do this. Just turn off all correlations and missing value plots.

pandas_profiling.ProfileReport(data, 
                               correlations={'pearson':False,'spearman':False,'kendall':False,'phi_k':False,'cramers':False,'recoded':False},
                               missing_diagrams={'bar':False,'matrix':False,'heatmap':False,'dendrogram':False})

The names are based on the config file: https://github.com/pandas-profiling/pandas-profiling/blob/master/pandas_profiling/config_default.yaml

like image 163
Simon Avatar answered Jul 29 '26 21:07

Simon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!