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

Commit

Permalink
detail
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Jan 15, 2024
1 parent cef7a3e commit 46fa737
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
22 changes: 19 additions & 3 deletions doc/make_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import shutil
from pathlib import Path

from skrub import datasets
from skrub import datasets as skrub_data
from sklearn import datasets as sklearn_data
from skrubview import Report


Expand All @@ -15,11 +16,26 @@
reports_dir = build_dir / "reports"
reports_dir.mkdir()

dataset_names = [
skrub_dataset_names = [
"employee_salaries",
"medical_charge",
]
datasets = [(getattr(datasets, f"fetch_{name}")().X, name) for name in dataset_names]
datasets = [
(getattr(skrub_data, f"fetch_{name}")().X, name) for name in skrub_dataset_names
]

sklearn_dataset_names = ["titanic"]
datasets.extend(
[
(
sklearn_data.fetch_openml(
name, as_frame=True, parser="auto", version=1
).frame,
name,
)
for name in sklearn_dataset_names
]
)


def add_report(df, name):
Expand Down
1 change: 1 addition & 0 deletions src/skrubview/_data/templates/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
max-height: 10rem;
min-height: 1rem;
overflow: auto;
white-space: nowrap;
}

{{ report_id_selector }}.skrubview-report .skrubview-table-value-box {
Expand Down

0 comments on commit 46fa737

Please sign in to comment.