Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
explain associations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Jun 27, 2024
1 parent 9a68b61 commit f653284
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/skrubview/_data/templates/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@
padding-block-end: var(--skrubview-tiny);
}

{{ report_id_selector }}.skrubview-report .skrubview-wrapper-vert-l {
padding-block-start: var(--skrubview-large);
padding-block-end: var(--skrubview-huge);
}

{{ report_id_selector }}.skrubview-report .skrubview-text {
max-width: var(--skrubview-max-content-width);
}
Expand Down
6 changes: 5 additions & 1 deletion src/skrubview/_data/templates/dataframe-interactions.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<article class="skrubview-wrapper">
<br/>
{% if summary["top_associations"] %}
<div class="skrubview-text skrubview-wrapper-vert-l">
The table below shows the strength of association between the most similar columns in the dataframe.
<a href="https://en.wikipedia.org/wiki/Cram%C3%A9r%27s_V">Cramér's V</a> statistic is a number between 0 and 1, when it is very close to 1 the columns contain the same information — they are redundant and for some models such as linear models it might be beneficial to remove one of them.
</div>

<div class="skrubview-horizontal-scroll">
<table class="pure-table">
<thead>
Expand Down

0 comments on commit f653284

Please sign in to comment.