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

Commit

Permalink
details
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Jan 15, 2024
1 parent b538331 commit cef7a3e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/skrubview/_data/templates/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@
align-items: center;
}

{{ report_id_selector }}.skrubview-report .skrubview-flex-wrap {
flex-wrap: wrap;
}



{{ report_id_selector }}.skrubview-report .skrubview-ellided {
max-width: 100ch;
overflow-x: hidden;
Expand Down
2 changes: 1 addition & 1 deletion src/skrubview/_data/templates/column-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3 class="skrubview-margin-r-t">
<button onclick='copyTextToClipboard("{{ val_id }}")'>📋</button>
{% endfor %}
{% set val_id = "{}-freq-value-all".format(col_id) %}
<strong>List:</strong><span></span>
<span>List:</span><span></span>
<pre class="skrubview-box" id="{{ val_id }}">{{ "[" }}
{%- for value in column.value_counts -%}
{{ value.__repr__() }}{{", " if not loop.last }}
Expand Down
2 changes: 1 addition & 1 deletion src/skrubview/_data/templates/dataframe-columns.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% from "utils.j2" import compact_id, collapse_const_id with context %}
<article class="skrubview-wrapper">
<strong>Column names</strong> (check/uncheck columns below to add/remove):
<div class="skrubview-flex skrubview-margin-v-t">
<div class="skrubview-flex skrubview-flex-wrap skrubview-margin-v-t">
<pre class="skrubview-box skrubview-selected-columns" id="{{ report_id }}-selected-columns"></pre>
<button onclick='copyTextToClipboard("{{ report_id }}-selected-columns")'>📋</button>
<button onclick='clearSelectedCols("{{ report_id }}")'>Clear</button>
Expand Down
2 changes: 1 addition & 1 deletion src/skrubview/_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def value_counts(value_counts, n_unique, color=COLOR_0):
counts = list(value_counts.values())[::-1]
height = 0.2 * (len(value_counts) + 1.1)
if n_unique > len(value_counts):
title = f"{len(value_counts)} most frequent out of {n_unique}"
title = f"{len(value_counts)} most frequent"
height += 0.5
else:
title = None
Expand Down

0 comments on commit cef7a3e

Please sign in to comment.