This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c25854
commit 959dd8b
Showing
2 changed files
with
27 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
{% set sample_tab_id = "{}-sample-tab".format(report_id) %} | ||
{% set sample_tab_button_id = "{}-sample-tab-button".format(report_id) %} | ||
{% set columns_tab_id = "{}-columns-tab".format(report_id) %} | ||
{% set columns_tab_button_id = "{}-columns-tab-button".format(report_id) %} | ||
{% set interactions_tab_id = "{}-interactions-tab".format(report_id) %} | ||
|
||
<div class="skrubview-report" id="{{ report_id }}"> | ||
<div class="skrubview-dataframe-summary skrubview-wrapper skrubview-text"> | ||
{% if summary.title %} | ||
<h1>{{ summary.title }}</h1> | ||
{% endif %} | ||
</div> | ||
|
||
{% include "column-filters.html" %} | ||
|
||
{% set sample_tab_id = "{}-sample-tab".format(report_id) %} | ||
{% set sample_tab_button_id = "{}-sample-tab-button".format(report_id) %} | ||
{% set columns_tab_id = "{}-columns-tab".format(report_id) %} | ||
{% set columns_tab_button_id = "{}-columns-tab-button".format(report_id) %} | ||
{% set interactions_tab_id = "{}-interactions-tab".format(report_id) %} | ||
<div class="skrubview-tabset"> | ||
<div class="skrubview-flex-reverse"> | ||
<div class="skrubview-tabset-buttons"> | ||
<button data-target-tab="{{ sample_tab_id }}" id="{{ sample_tab_button_id }}" onclick="displayTab(event)">Table preview</button> | ||
<button data-target-tab="{{ columns_tab_id }}" id="{{ columns_tab_button_id }}" onclick="displayTab(event)">Column summaries</button> | ||
{% set interactions_warning = summary["top_associations"][0]["cramer_v"] is gt 0.9 %} | ||
<button data-target-tab="{{ interactions_tab_id }}" onclick="displayTab(event)" {% if interactions_warning %}data-has-warning=""{% endif %} >Column similarities</button> | ||
</div> | ||
<div class="skrubview-tab" id="{{ sample_tab_id }}"> | ||
{% include "dataframe-sample.html" %} | ||
</div> | ||
<div class="skrubview-tab" id="{{ columns_tab_id }}"> | ||
{% include "dataframe-columns.html" %} | ||
</div> | ||
<div class="skrubview-tab" id="{{ interactions_tab_id }}"> | ||
{% include "dataframe-interactions.html" %} | ||
<button data-target-tab="{{ interactions_tab_id }}" onclick="displayTab(event)" {% if interactions_warning %}data-has-warning="" {% endif %}>Column similarities</button> | ||
</div> | ||
{% include "column-filters.html" %} | ||
</div> | ||
<div class="skrubview-tab" id="{{ sample_tab_id }}"> | ||
{% include "dataframe-sample.html" %} | ||
</div> | ||
<div class="skrubview-tab" id="{{ columns_tab_id }}"> | ||
{% include "dataframe-columns.html" %} | ||
</div> | ||
<div class="skrubview-tab" id="{{ interactions_tab_id }}"> | ||
{% include "dataframe-interactions.html" %} | ||
</div> | ||
<script> | ||
updateSelectedColsSnippet("{{ report_id }}", false); | ||
document.getElementById("{{ sample_tab_button_id }}").click(); | ||
onFilterChange("{{ report_id }}_col_filter"); | ||
updateSelectedColsSnippet("{{ report_id }}", false); | ||
document.getElementById("{{ sample_tab_button_id }}").click(); | ||
onFilterChange("{{ report_id }}_col_filter"); | ||
</script> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters