fg-data-profiling 4.19.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data_profiling/__init__.py +34 -0
- data_profiling/compare_reports.py +359 -0
- data_profiling/config.py +496 -0
- data_profiling/config_default.yaml +223 -0
- data_profiling/config_minimal.yaml +222 -0
- data_profiling/controller/__init__.py +1 -0
- data_profiling/controller/console.py +125 -0
- data_profiling/controller/pandas_decorator.py +21 -0
- data_profiling/expectations_report.py +117 -0
- data_profiling/model/__init__.py +4 -0
- data_profiling/model/alerts.py +780 -0
- data_profiling/model/correlations.py +163 -0
- data_profiling/model/dataframe.py +35 -0
- data_profiling/model/describe.py +210 -0
- data_profiling/model/description.py +108 -0
- data_profiling/model/duplicates.py +14 -0
- data_profiling/model/expectation_algorithms.py +112 -0
- data_profiling/model/handler.py +81 -0
- data_profiling/model/missing.py +146 -0
- data_profiling/model/pairwise.py +33 -0
- data_profiling/model/pandas/__init__.py +55 -0
- data_profiling/model/pandas/correlations_pandas.py +207 -0
- data_profiling/model/pandas/dataframe_pandas.py +26 -0
- data_profiling/model/pandas/describe_boolean_pandas.py +43 -0
- data_profiling/model/pandas/describe_categorical_pandas.py +274 -0
- data_profiling/model/pandas/describe_counts_pandas.py +63 -0
- data_profiling/model/pandas/describe_date_pandas.py +77 -0
- data_profiling/model/pandas/describe_file_pandas.py +56 -0
- data_profiling/model/pandas/describe_generic_pandas.py +36 -0
- data_profiling/model/pandas/describe_image_pandas.py +255 -0
- data_profiling/model/pandas/describe_numeric_pandas.py +175 -0
- data_profiling/model/pandas/describe_path_pandas.py +63 -0
- data_profiling/model/pandas/describe_supported_pandas.py +41 -0
- data_profiling/model/pandas/describe_text_pandas.py +62 -0
- data_profiling/model/pandas/describe_timeseries_pandas.py +222 -0
- data_profiling/model/pandas/describe_url_pandas.py +57 -0
- data_profiling/model/pandas/discretize_pandas.py +81 -0
- data_profiling/model/pandas/duplicates_pandas.py +56 -0
- data_profiling/model/pandas/imbalance_pandas.py +35 -0
- data_profiling/model/pandas/missing_pandas.py +42 -0
- data_profiling/model/pandas/sample_pandas.py +38 -0
- data_profiling/model/pandas/summary_pandas.py +101 -0
- data_profiling/model/pandas/table_pandas.py +56 -0
- data_profiling/model/pandas/timeseries_index_pandas.py +33 -0
- data_profiling/model/pandas/utils_pandas.py +27 -0
- data_profiling/model/sample.py +37 -0
- data_profiling/model/spark/__init__.py +48 -0
- data_profiling/model/spark/correlations_spark.py +152 -0
- data_profiling/model/spark/dataframe_spark.py +34 -0
- data_profiling/model/spark/describe_boolean_spark.py +27 -0
- data_profiling/model/spark/describe_categorical_spark.py +28 -0
- data_profiling/model/spark/describe_counts_spark.py +105 -0
- data_profiling/model/spark/describe_date_spark.py +51 -0
- data_profiling/model/spark/describe_generic_spark.py +30 -0
- data_profiling/model/spark/describe_numeric_spark.py +155 -0
- data_profiling/model/spark/describe_supported_spark.py +33 -0
- data_profiling/model/spark/describe_text_spark.py +25 -0
- data_profiling/model/spark/duplicates_spark.py +54 -0
- data_profiling/model/spark/missing_spark.py +96 -0
- data_profiling/model/spark/sample_spark.py +43 -0
- data_profiling/model/spark/summary_spark.py +95 -0
- data_profiling/model/spark/table_spark.py +58 -0
- data_profiling/model/spark/timeseries_index_spark.py +12 -0
- data_profiling/model/summarizer.py +207 -0
- data_profiling/model/summary.py +66 -0
- data_profiling/model/summary_algorithms.py +276 -0
- data_profiling/model/table.py +10 -0
- data_profiling/model/timeseries_index.py +16 -0
- data_profiling/model/typeset.py +365 -0
- data_profiling/model/typeset_relations.py +143 -0
- data_profiling/profile_report.py +573 -0
- data_profiling/report/__init__.py +4 -0
- data_profiling/report/formatters.py +346 -0
- data_profiling/report/presentation/__init__.py +1 -0
- data_profiling/report/presentation/core/__init__.py +39 -0
- data_profiling/report/presentation/core/alerts.py +18 -0
- data_profiling/report/presentation/core/collapse.py +24 -0
- data_profiling/report/presentation/core/container.py +50 -0
- data_profiling/report/presentation/core/correlation_table.py +21 -0
- data_profiling/report/presentation/core/dropdown.py +44 -0
- data_profiling/report/presentation/core/duplicate.py +16 -0
- data_profiling/report/presentation/core/frequency_table.py +14 -0
- data_profiling/report/presentation/core/frequency_table_small.py +16 -0
- data_profiling/report/presentation/core/html.py +14 -0
- data_profiling/report/presentation/core/image.py +34 -0
- data_profiling/report/presentation/core/item_renderer.py +17 -0
- data_profiling/report/presentation/core/renderable.py +42 -0
- data_profiling/report/presentation/core/root.py +35 -0
- data_profiling/report/presentation/core/sample.py +20 -0
- data_profiling/report/presentation/core/scores.py +32 -0
- data_profiling/report/presentation/core/table.py +26 -0
- data_profiling/report/presentation/core/toggle_button.py +14 -0
- data_profiling/report/presentation/core/variable.py +40 -0
- data_profiling/report/presentation/core/variable_info.py +36 -0
- data_profiling/report/presentation/flavours/__init__.py +9 -0
- data_profiling/report/presentation/flavours/flavour_html.py +64 -0
- data_profiling/report/presentation/flavours/flavour_widget.py +61 -0
- data_profiling/report/presentation/flavours/flavours.py +43 -0
- data_profiling/report/presentation/flavours/html/__init__.py +47 -0
- data_profiling/report/presentation/flavours/html/alerts.py +10 -0
- data_profiling/report/presentation/flavours/html/collapse.py +7 -0
- data_profiling/report/presentation/flavours/html/container.py +58 -0
- data_profiling/report/presentation/flavours/html/correlation_table.py +13 -0
- data_profiling/report/presentation/flavours/html/dropdown.py +7 -0
- data_profiling/report/presentation/flavours/html/duplicate.py +24 -0
- data_profiling/report/presentation/flavours/html/frequency_table.py +20 -0
- data_profiling/report/presentation/flavours/html/frequency_table_small.py +15 -0
- data_profiling/report/presentation/flavours/html/html.py +6 -0
- data_profiling/report/presentation/flavours/html/image.py +7 -0
- data_profiling/report/presentation/flavours/html/root.py +14 -0
- data_profiling/report/presentation/flavours/html/sample.py +12 -0
- data_profiling/report/presentation/flavours/html/scores.py +11 -0
- data_profiling/report/presentation/flavours/html/table.py +7 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_constant.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_constant_length.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_dirty_category.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_duplicates.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_empty.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_high_cardinality.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_high_correlation.html +4 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_imbalance.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_infinite.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_missing.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_near_duplicates.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_non_stationary.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_seasonal.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_skewed.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_truncated.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_type_date.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_uniform.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_unique.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_unsupported.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts/alert_zeros.html +1 -0
- data_profiling/report/presentation/flavours/html/templates/alerts.html +47 -0
- data_profiling/report/presentation/flavours/html/templates/collapse.html +11 -0
- data_profiling/report/presentation/flavours/html/templates/correlation_table.html +5 -0
- data_profiling/report/presentation/flavours/html/templates/diagram.html +11 -0
- data_profiling/report/presentation/flavours/html/templates/dropdown.html +16 -0
- data_profiling/report/presentation/flavours/html/templates/duplicate.html +5 -0
- data_profiling/report/presentation/flavours/html/templates/frequency_table.html +45 -0
- data_profiling/report/presentation/flavours/html/templates/frequency_table_small.html +34 -0
- data_profiling/report/presentation/flavours/html/templates/report.html +26 -0
- data_profiling/report/presentation/flavours/html/templates/sample.html +10 -0
- data_profiling/report/presentation/flavours/html/templates/scores.html +78 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/batch_grid.html +16 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/grid.html +18 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/list.html +7 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/named_list.html +8 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/overview_tabs.html +30 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/scores.html +3 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/sections.html +13 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/select.html +40 -0
- data_profiling/report/presentation/flavours/html/templates/sequence/tabs.html +30 -0
- data_profiling/report/presentation/flavours/html/templates/table.html +38 -0
- data_profiling/report/presentation/flavours/html/templates/toggle_button.html +18 -0
- data_profiling/report/presentation/flavours/html/templates/variable.html +7 -0
- data_profiling/report/presentation/flavours/html/templates/variable_info.html +49 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/assets/bootstrap.bundle.min.js +7 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/assets/bootstrap.min.css +6 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/assets/cosmo.bootstrap.min.css +12 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/assets/flatly.bootstrap.min.css +12 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/assets/script.js +52 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/assets/simplex.bootstrap.min.css +12 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/assets/style.css +253 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/assets/united.bootstrap.min.css +12 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/footer.html +7 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/javascript.html +18 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/navigation.html +36 -0
- data_profiling/report/presentation/flavours/html/templates/wrapper/style.html +53 -0
- data_profiling/report/presentation/flavours/html/templates.py +76 -0
- data_profiling/report/presentation/flavours/html/toggle_button.py +7 -0
- data_profiling/report/presentation/flavours/html/variable.py +7 -0
- data_profiling/report/presentation/flavours/html/variable_info.py +7 -0
- data_profiling/report/presentation/flavours/widget/__init__.py +49 -0
- data_profiling/report/presentation/flavours/widget/alerts.py +45 -0
- data_profiling/report/presentation/flavours/widget/collapse.py +43 -0
- data_profiling/report/presentation/flavours/widget/container.py +121 -0
- data_profiling/report/presentation/flavours/widget/correlation_table.py +14 -0
- data_profiling/report/presentation/flavours/widget/dropdown.py +31 -0
- data_profiling/report/presentation/flavours/widget/duplicate.py +14 -0
- data_profiling/report/presentation/flavours/widget/frequency_table.py +57 -0
- data_profiling/report/presentation/flavours/widget/frequency_table_small.py +66 -0
- data_profiling/report/presentation/flavours/widget/html.py +11 -0
- data_profiling/report/presentation/flavours/widget/image.py +26 -0
- data_profiling/report/presentation/flavours/widget/notebook.py +81 -0
- data_profiling/report/presentation/flavours/widget/root.py +10 -0
- data_profiling/report/presentation/flavours/widget/sample.py +14 -0
- data_profiling/report/presentation/flavours/widget/table.py +30 -0
- data_profiling/report/presentation/flavours/widget/toggle_button.py +17 -0
- data_profiling/report/presentation/flavours/widget/variable.py +12 -0
- data_profiling/report/presentation/flavours/widget/variable_info.py +11 -0
- data_profiling/report/presentation/frequency_table_utils.py +141 -0
- data_profiling/report/structure/__init__.py +1 -0
- data_profiling/report/structure/correlations.py +123 -0
- data_profiling/report/structure/overview.py +376 -0
- data_profiling/report/structure/report.py +457 -0
- data_profiling/report/structure/variables/__init__.py +35 -0
- data_profiling/report/structure/variables/render_boolean.py +132 -0
- data_profiling/report/structure/variables/render_categorical.py +566 -0
- data_profiling/report/structure/variables/render_common.py +31 -0
- data_profiling/report/structure/variables/render_complex.py +102 -0
- data_profiling/report/structure/variables/render_count.py +172 -0
- data_profiling/report/structure/variables/render_date.py +143 -0
- data_profiling/report/structure/variables/render_file.py +70 -0
- data_profiling/report/structure/variables/render_generic.py +45 -0
- data_profiling/report/structure/variables/render_image.py +204 -0
- data_profiling/report/structure/variables/render_path.py +134 -0
- data_profiling/report/structure/variables/render_real.py +314 -0
- data_profiling/report/structure/variables/render_text.py +189 -0
- data_profiling/report/structure/variables/render_timeseries.py +371 -0
- data_profiling/report/structure/variables/render_url.py +132 -0
- data_profiling/report/utils.py +34 -0
- data_profiling/serialize_report.py +143 -0
- data_profiling/utils/__init__.py +1 -0
- data_profiling/utils/backend.py +9 -0
- data_profiling/utils/cache.py +59 -0
- data_profiling/utils/common.py +142 -0
- data_profiling/utils/compat.py +31 -0
- data_profiling/utils/dataframe.py +238 -0
- data_profiling/utils/logger.py +53 -0
- data_profiling/utils/notebook.py +8 -0
- data_profiling/utils/paths.py +45 -0
- data_profiling/utils/progress_bar.py +15 -0
- data_profiling/utils/styles.py +22 -0
- data_profiling/utils/versions.py +19 -0
- data_profiling/version.py +1 -0
- data_profiling/visualisation/__init__.py +1 -0
- data_profiling/visualisation/context.py +87 -0
- data_profiling/visualisation/missing.py +138 -0
- data_profiling/visualisation/plot.py +1158 -0
- data_profiling/visualisation/utils.py +113 -0
- fg_data_profiling-4.19.0.dist-info/METADATA +362 -0
- fg_data_profiling-4.19.0.dist-info/RECORD +238 -0
- fg_data_profiling-4.19.0.dist-info/WHEEL +6 -0
- fg_data_profiling-4.19.0.dist-info/entry_points.txt +3 -0
- fg_data_profiling-4.19.0.dist-info/licenses/LICENSE +21 -0
- fg_data_profiling-4.19.0.dist-info/top_level.txt +2 -0
- ydata_profiling/__init__.py +43 -0
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
from typing import List, Tuple, Union
|
|
2
|
+
|
|
3
|
+
import pandas as pd
|
|
4
|
+
|
|
5
|
+
from data_profiling.config import Settings
|
|
6
|
+
from data_profiling.report.formatters import (
|
|
7
|
+
fmt,
|
|
8
|
+
fmt_bytesize,
|
|
9
|
+
fmt_number,
|
|
10
|
+
fmt_numeric,
|
|
11
|
+
fmt_percent,
|
|
12
|
+
help,
|
|
13
|
+
)
|
|
14
|
+
from data_profiling.report.presentation.core import (
|
|
15
|
+
HTML,
|
|
16
|
+
Container,
|
|
17
|
+
FrequencyTable,
|
|
18
|
+
FrequencyTableSmall,
|
|
19
|
+
Image,
|
|
20
|
+
Table,
|
|
21
|
+
VariableInfo,
|
|
22
|
+
)
|
|
23
|
+
from data_profiling.report.presentation.core.renderable import Renderable
|
|
24
|
+
from data_profiling.report.presentation.frequency_table_utils import freq_table
|
|
25
|
+
from data_profiling.report.structure.variables.render_common import render_common
|
|
26
|
+
from data_profiling.report.utils import image_or_empty
|
|
27
|
+
from data_profiling.visualisation.plot import cat_frequency_plot, histogram
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def render_categorical_frequency(
|
|
31
|
+
config: Settings, summary: dict, varid: str
|
|
32
|
+
) -> Renderable:
|
|
33
|
+
frequency_table = Table(
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
|
+
"name": "Unique",
|
|
37
|
+
"value": fmt_number(summary["n_unique"]),
|
|
38
|
+
"hint": help(
|
|
39
|
+
"The number of unique values (all values that occur exactly once in the dataset)."
|
|
40
|
+
),
|
|
41
|
+
"alert": "n_unique" in summary["alert_fields"],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "Unique (%)",
|
|
45
|
+
"value": fmt_percent(summary["p_unique"]),
|
|
46
|
+
"alert": "p_unique" in summary["alert_fields"],
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
name="Unique",
|
|
50
|
+
anchor_id=f"{varid}_unique_stats",
|
|
51
|
+
style=config.html.style,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
return frequency_table
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def render_categorical_length(
|
|
58
|
+
config: Settings, summary: dict, varid: str
|
|
59
|
+
) -> Tuple[Renderable, Renderable]:
|
|
60
|
+
length_table = Table(
|
|
61
|
+
[
|
|
62
|
+
{
|
|
63
|
+
"name": "Max length",
|
|
64
|
+
"value": fmt_number(summary["max_length"]),
|
|
65
|
+
"alert": False,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "Median length",
|
|
69
|
+
"value": fmt_number(summary["median_length"]),
|
|
70
|
+
"alert": False,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "Mean length",
|
|
74
|
+
"value": fmt_numeric(
|
|
75
|
+
summary["mean_length"], precision=config.report.precision
|
|
76
|
+
),
|
|
77
|
+
"alert": False,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "Min length",
|
|
81
|
+
"value": fmt_number(summary["min_length"]),
|
|
82
|
+
"alert": False,
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
name="Length",
|
|
86
|
+
anchor_id=f"{varid}lengthstats",
|
|
87
|
+
style=config.html.style,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
if isinstance(summary["histogram_length"], list):
|
|
91
|
+
hist_data = histogram(
|
|
92
|
+
config,
|
|
93
|
+
[x[0] for x in summary["histogram_length"]],
|
|
94
|
+
[x[1] for x in summary["histogram_length"]],
|
|
95
|
+
)
|
|
96
|
+
else:
|
|
97
|
+
hist_data = histogram(config, *summary["histogram_length"])
|
|
98
|
+
|
|
99
|
+
length_histo = image_or_empty(
|
|
100
|
+
hist_data,
|
|
101
|
+
image_format=config.plot.image_format,
|
|
102
|
+
alt="length histogram",
|
|
103
|
+
name="Length",
|
|
104
|
+
caption="Histogram of lengths of the category",
|
|
105
|
+
anchor_id=f"{varid}length",
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
return length_table, length_histo
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def _get_n(value: Union[list, pd.DataFrame]) -> Union[int, List[int]]:
|
|
112
|
+
"""Helper function to deal with multiple values"""
|
|
113
|
+
if isinstance(value, list):
|
|
114
|
+
n = [v.sum() for v in value]
|
|
115
|
+
else:
|
|
116
|
+
n = value.sum()
|
|
117
|
+
return n
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def render_categorical_unicode(
|
|
121
|
+
config: Settings, summary: dict, varid: str
|
|
122
|
+
) -> Tuple[Renderable, Renderable]:
|
|
123
|
+
n_freq_table_max = config.n_freq_table_max
|
|
124
|
+
|
|
125
|
+
category_overview = FrequencyTable(
|
|
126
|
+
freq_table(
|
|
127
|
+
freqtable=summary["category_alias_counts"],
|
|
128
|
+
n=_get_n(summary["category_alias_counts"]),
|
|
129
|
+
max_number_to_print=n_freq_table_max,
|
|
130
|
+
),
|
|
131
|
+
name="Most occurring categories",
|
|
132
|
+
anchor_id=f"{varid}category_long_values",
|
|
133
|
+
redact=False,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
cats = []
|
|
137
|
+
for category_alias_name, category_alias_counts in sorted(
|
|
138
|
+
summary["category_alias_char_counts"].items(), key=lambda x: -len(x[1])
|
|
139
|
+
):
|
|
140
|
+
category_alias_name = category_alias_name.replace("_", " ")
|
|
141
|
+
cats.append(
|
|
142
|
+
FrequencyTable(
|
|
143
|
+
freq_table(
|
|
144
|
+
freqtable=category_alias_counts,
|
|
145
|
+
n=_get_n(category_alias_counts),
|
|
146
|
+
max_number_to_print=n_freq_table_max,
|
|
147
|
+
),
|
|
148
|
+
name=f"{category_alias_name}",
|
|
149
|
+
anchor_id=f"{varid}category_alias_values_{category_alias_name}",
|
|
150
|
+
redact=config.vars.cat.redact,
|
|
151
|
+
)
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
category_items = [
|
|
155
|
+
category_overview,
|
|
156
|
+
Container(
|
|
157
|
+
cats,
|
|
158
|
+
name="Most frequent character per category",
|
|
159
|
+
sequence_type="batch_grid",
|
|
160
|
+
anchor_id=f"{varid}categories",
|
|
161
|
+
batch_size=1,
|
|
162
|
+
subtitles=True,
|
|
163
|
+
),
|
|
164
|
+
]
|
|
165
|
+
|
|
166
|
+
script_overview = FrequencyTable(
|
|
167
|
+
freq_table(
|
|
168
|
+
freqtable=summary["script_counts"],
|
|
169
|
+
n=_get_n(summary["script_counts"]),
|
|
170
|
+
max_number_to_print=n_freq_table_max,
|
|
171
|
+
),
|
|
172
|
+
name="Most occurring scripts",
|
|
173
|
+
anchor_id=f"{varid}script_values",
|
|
174
|
+
redact=False,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
scripts = [
|
|
178
|
+
FrequencyTable(
|
|
179
|
+
freq_table(
|
|
180
|
+
freqtable=script_counts,
|
|
181
|
+
n=_get_n(script_counts),
|
|
182
|
+
max_number_to_print=n_freq_table_max,
|
|
183
|
+
),
|
|
184
|
+
name=f"{script_name}",
|
|
185
|
+
anchor_id=f"{varid}script_values_{script_name}",
|
|
186
|
+
redact=config.vars.cat.redact,
|
|
187
|
+
)
|
|
188
|
+
for script_name, script_counts in sorted(
|
|
189
|
+
summary["script_char_counts"].items(), key=lambda x: -len(x[1])
|
|
190
|
+
)
|
|
191
|
+
]
|
|
192
|
+
|
|
193
|
+
script_items = [
|
|
194
|
+
script_overview,
|
|
195
|
+
Container(
|
|
196
|
+
scripts,
|
|
197
|
+
name="Most frequent character per script",
|
|
198
|
+
sequence_type="batch_grid",
|
|
199
|
+
anchor_id=f"{varid}scripts",
|
|
200
|
+
batch_size=1,
|
|
201
|
+
subtitles=True,
|
|
202
|
+
),
|
|
203
|
+
]
|
|
204
|
+
|
|
205
|
+
block_overview = FrequencyTable(
|
|
206
|
+
freq_table(
|
|
207
|
+
freqtable=summary["block_alias_counts"],
|
|
208
|
+
n=_get_n(summary["block_alias_counts"]),
|
|
209
|
+
max_number_to_print=n_freq_table_max,
|
|
210
|
+
),
|
|
211
|
+
name="Most occurring blocks",
|
|
212
|
+
anchor_id=f"{varid}block_alias_values",
|
|
213
|
+
redact=False,
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
blocks = [
|
|
217
|
+
FrequencyTable(
|
|
218
|
+
freq_table(
|
|
219
|
+
freqtable=block_counts,
|
|
220
|
+
n=_get_n(block_counts),
|
|
221
|
+
max_number_to_print=n_freq_table_max,
|
|
222
|
+
),
|
|
223
|
+
name=f"{block_name}",
|
|
224
|
+
anchor_id=f"{varid}block_alias_values_{block_name}",
|
|
225
|
+
redact=config.vars.cat.redact,
|
|
226
|
+
)
|
|
227
|
+
for block_name, block_counts in summary["block_alias_char_counts"].items()
|
|
228
|
+
]
|
|
229
|
+
|
|
230
|
+
block_items = [
|
|
231
|
+
block_overview,
|
|
232
|
+
Container(
|
|
233
|
+
blocks,
|
|
234
|
+
name="Most frequent character per block",
|
|
235
|
+
sequence_type="batch_grid",
|
|
236
|
+
anchor_id=f"{varid}blocks",
|
|
237
|
+
batch_size=1,
|
|
238
|
+
subtitles=True,
|
|
239
|
+
),
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
overview_table = Table(
|
|
243
|
+
[
|
|
244
|
+
{
|
|
245
|
+
"name": "Total characters",
|
|
246
|
+
"value": fmt_number(summary["n_characters"]),
|
|
247
|
+
"alert": False,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "Distinct characters",
|
|
251
|
+
"value": fmt_number(summary["n_characters_distinct"]),
|
|
252
|
+
"alert": False,
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "Distinct categories",
|
|
256
|
+
"value": fmt_number(summary["n_category"]),
|
|
257
|
+
"hint": help(
|
|
258
|
+
title="Unicode categories (click for more information)",
|
|
259
|
+
url="https://en.wikipedia.org/wiki/Unicode_character_property#General_Category",
|
|
260
|
+
),
|
|
261
|
+
"alert": False,
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "Distinct scripts",
|
|
265
|
+
"value": fmt_number(summary["n_scripts"]),
|
|
266
|
+
"hint": help(
|
|
267
|
+
title="Unicode scripts (click for more information)",
|
|
268
|
+
url="https://en.wikipedia.org/wiki/Script_(Unicode)#List_of_scripts_in_Unicode",
|
|
269
|
+
),
|
|
270
|
+
"alert": False,
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "Distinct blocks",
|
|
274
|
+
"value": fmt_number(summary["n_block_alias"]),
|
|
275
|
+
"hint": help(
|
|
276
|
+
title="Unicode blocks (click for more information)",
|
|
277
|
+
url="https://en.wikipedia.org/wiki/Unicode_block",
|
|
278
|
+
),
|
|
279
|
+
"alert": False,
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
name="Characters and Unicode",
|
|
283
|
+
caption="The Unicode Standard assigns character properties to each code point, which can be used to analyse textual variables. ",
|
|
284
|
+
style=config.html.style,
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
citems = [
|
|
288
|
+
Container(
|
|
289
|
+
[
|
|
290
|
+
FrequencyTable(
|
|
291
|
+
freq_table(
|
|
292
|
+
freqtable=summary["character_counts"],
|
|
293
|
+
n=summary["n_characters"],
|
|
294
|
+
max_number_to_print=n_freq_table_max,
|
|
295
|
+
),
|
|
296
|
+
name="Most occurring characters",
|
|
297
|
+
anchor_id=f"{varid}character_frequency",
|
|
298
|
+
redact=config.vars.cat.redact,
|
|
299
|
+
),
|
|
300
|
+
],
|
|
301
|
+
name="Characters",
|
|
302
|
+
anchor_id=f"{varid}characters",
|
|
303
|
+
sequence_type="named_list",
|
|
304
|
+
),
|
|
305
|
+
Container(
|
|
306
|
+
category_items,
|
|
307
|
+
name="Categories",
|
|
308
|
+
anchor_id=f"{varid}categories",
|
|
309
|
+
sequence_type="named_list",
|
|
310
|
+
),
|
|
311
|
+
Container(
|
|
312
|
+
script_items,
|
|
313
|
+
name="Scripts",
|
|
314
|
+
anchor_id=f"{varid}scripts",
|
|
315
|
+
sequence_type="named_list",
|
|
316
|
+
),
|
|
317
|
+
Container(
|
|
318
|
+
block_items,
|
|
319
|
+
name="Blocks",
|
|
320
|
+
anchor_id=f"{varid}blocks",
|
|
321
|
+
sequence_type="named_list",
|
|
322
|
+
),
|
|
323
|
+
]
|
|
324
|
+
|
|
325
|
+
return overview_table, Container(
|
|
326
|
+
citems,
|
|
327
|
+
name="Unicode",
|
|
328
|
+
sequence_type="tabs",
|
|
329
|
+
anchor_id=f"{varid}unicode",
|
|
330
|
+
)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
def render_categorical(config: Settings, summary: dict) -> dict:
|
|
334
|
+
varid = summary["varid"]
|
|
335
|
+
n_obs_cat = config.vars.cat.n_obs
|
|
336
|
+
image_format = config.plot.image_format
|
|
337
|
+
words = config.vars.cat.words
|
|
338
|
+
characters = config.vars.cat.characters
|
|
339
|
+
length = config.vars.cat.length
|
|
340
|
+
|
|
341
|
+
template_variables = render_common(config, summary)
|
|
342
|
+
|
|
343
|
+
type_name = summary["type"]
|
|
344
|
+
if isinstance(type_name, list):
|
|
345
|
+
type_name = type_name[0]
|
|
346
|
+
|
|
347
|
+
info = VariableInfo(
|
|
348
|
+
summary["varid"],
|
|
349
|
+
summary["varname"],
|
|
350
|
+
type_name,
|
|
351
|
+
summary["alerts"],
|
|
352
|
+
summary["description"],
|
|
353
|
+
style=config.html.style,
|
|
354
|
+
)
|
|
355
|
+
|
|
356
|
+
table = Table(
|
|
357
|
+
[
|
|
358
|
+
{
|
|
359
|
+
"name": "Distinct",
|
|
360
|
+
"value": fmt(summary["n_distinct"]),
|
|
361
|
+
"alert": "n_distinct" in summary["alert_fields"],
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "Distinct (%)",
|
|
365
|
+
"value": fmt_percent(summary["p_distinct"]),
|
|
366
|
+
"alert": "p_distinct" in summary["alert_fields"],
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "Missing",
|
|
370
|
+
"value": fmt(summary["n_missing"]),
|
|
371
|
+
"alert": "n_missing" in summary["alert_fields"],
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "Missing (%)",
|
|
375
|
+
"value": fmt_percent(summary["p_missing"]),
|
|
376
|
+
"alert": "p_missing" in summary["alert_fields"],
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "Memory size",
|
|
380
|
+
"value": fmt_bytesize(summary["memory_size"]),
|
|
381
|
+
"alert": False,
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
style=config.html.style,
|
|
385
|
+
)
|
|
386
|
+
|
|
387
|
+
fqm = FrequencyTableSmall(
|
|
388
|
+
freq_table(
|
|
389
|
+
freqtable=summary["value_counts_without_nan"],
|
|
390
|
+
n=summary["count"],
|
|
391
|
+
max_number_to_print=n_obs_cat,
|
|
392
|
+
),
|
|
393
|
+
redact=config.vars.cat.redact,
|
|
394
|
+
)
|
|
395
|
+
|
|
396
|
+
template_variables["top"] = Container([info, table, fqm], sequence_type="grid")
|
|
397
|
+
|
|
398
|
+
# ============================================================================================
|
|
399
|
+
|
|
400
|
+
frequency_table = FrequencyTable(
|
|
401
|
+
template_variables["freq_table_rows"],
|
|
402
|
+
name="Common Values",
|
|
403
|
+
anchor_id=f"{varid}common_values",
|
|
404
|
+
redact=config.vars.cat.redact,
|
|
405
|
+
)
|
|
406
|
+
|
|
407
|
+
unique_stats = render_categorical_frequency(config, summary, varid)
|
|
408
|
+
|
|
409
|
+
overview_items = []
|
|
410
|
+
|
|
411
|
+
# length isn't being computed for categorical in spark
|
|
412
|
+
if length and "max_length" in summary:
|
|
413
|
+
length_table, length_histo = render_categorical_length(config, summary, varid)
|
|
414
|
+
overview_items.append(length_table)
|
|
415
|
+
|
|
416
|
+
# characters isn't being computed for categorical in spark
|
|
417
|
+
if characters and "category_alias_counts" in summary:
|
|
418
|
+
overview_table_char, unitab = render_categorical_unicode(config, summary, varid)
|
|
419
|
+
overview_items.append(overview_table_char)
|
|
420
|
+
|
|
421
|
+
overview_items.append(unique_stats)
|
|
422
|
+
|
|
423
|
+
if not config.vars.cat.redact:
|
|
424
|
+
rows = ("1st row", "2nd row", "3rd row", "4th row", "5th row")
|
|
425
|
+
|
|
426
|
+
if isinstance(summary["first_rows"], list):
|
|
427
|
+
sample = Table(
|
|
428
|
+
[
|
|
429
|
+
{
|
|
430
|
+
"name": name,
|
|
431
|
+
"value": fmt(value),
|
|
432
|
+
"alert": False,
|
|
433
|
+
}
|
|
434
|
+
for name, *value in zip(rows, *summary["first_rows"])
|
|
435
|
+
],
|
|
436
|
+
name="Sample",
|
|
437
|
+
style=config.html.style,
|
|
438
|
+
)
|
|
439
|
+
else:
|
|
440
|
+
sample = Table(
|
|
441
|
+
[
|
|
442
|
+
{
|
|
443
|
+
"name": name,
|
|
444
|
+
"value": fmt(value),
|
|
445
|
+
"alert": False,
|
|
446
|
+
}
|
|
447
|
+
for name, value in zip(rows, summary["first_rows"])
|
|
448
|
+
],
|
|
449
|
+
name="Sample",
|
|
450
|
+
style=config.html.style,
|
|
451
|
+
)
|
|
452
|
+
overview_items.append(sample)
|
|
453
|
+
|
|
454
|
+
# length isn't being computed in spark. disable rendering
|
|
455
|
+
string_items: List[Renderable] = [frequency_table]
|
|
456
|
+
if length and "max_length" in summary:
|
|
457
|
+
string_items.append(length_histo)
|
|
458
|
+
|
|
459
|
+
show = config.plot.cat_freq.show
|
|
460
|
+
max_unique = config.plot.cat_freq.max_unique
|
|
461
|
+
|
|
462
|
+
if show and (max_unique > 0):
|
|
463
|
+
if isinstance(summary["value_counts_without_nan"], list):
|
|
464
|
+
string_items.append(
|
|
465
|
+
Container(
|
|
466
|
+
[
|
|
467
|
+
Image(
|
|
468
|
+
cat_frequency_plot(
|
|
469
|
+
config,
|
|
470
|
+
s,
|
|
471
|
+
),
|
|
472
|
+
image_format=image_format,
|
|
473
|
+
alt=config.html.style._labels[idx],
|
|
474
|
+
name=config.html.style._labels[idx],
|
|
475
|
+
anchor_id=f"{varid}cat_frequency_plot_{idx}",
|
|
476
|
+
)
|
|
477
|
+
if summary["n_distinct"][idx] <= max_unique
|
|
478
|
+
else HTML(
|
|
479
|
+
f"<h4 class='indent'>{config.html.style._labels[idx]}</h4><br />"
|
|
480
|
+
f"<em>Number of variable categories passes threshold (<code>config.plot.cat_freq.max_unique</code>)</em>"
|
|
481
|
+
)
|
|
482
|
+
for idx, s in enumerate(summary["value_counts_without_nan"])
|
|
483
|
+
],
|
|
484
|
+
anchor_id=f"{varid}cat_frequency_plot",
|
|
485
|
+
name="Common Values (Plot)",
|
|
486
|
+
sequence_type="batch_grid",
|
|
487
|
+
batch_size=len(config.html.style._labels),
|
|
488
|
+
)
|
|
489
|
+
)
|
|
490
|
+
elif (
|
|
491
|
+
len(config.html.style._labels) == 1 and summary["n_distinct"] <= max_unique
|
|
492
|
+
):
|
|
493
|
+
string_items.append(
|
|
494
|
+
Image(
|
|
495
|
+
cat_frequency_plot(
|
|
496
|
+
config,
|
|
497
|
+
summary["value_counts_without_nan"],
|
|
498
|
+
),
|
|
499
|
+
image_format=image_format,
|
|
500
|
+
alt="Common Values (Plot)",
|
|
501
|
+
name="Common Values (Plot)",
|
|
502
|
+
anchor_id=f"{varid}cat_frequency_plot",
|
|
503
|
+
)
|
|
504
|
+
)
|
|
505
|
+
|
|
506
|
+
bottom_items = [
|
|
507
|
+
Container(
|
|
508
|
+
overview_items,
|
|
509
|
+
name="Overview",
|
|
510
|
+
anchor_id=f"{varid}overview",
|
|
511
|
+
sequence_type="batch_grid",
|
|
512
|
+
batch_size=len(overview_items),
|
|
513
|
+
titles=False,
|
|
514
|
+
),
|
|
515
|
+
Container(
|
|
516
|
+
string_items,
|
|
517
|
+
name="Categories",
|
|
518
|
+
anchor_id=f"{varid}string",
|
|
519
|
+
sequence_type="named_list"
|
|
520
|
+
if len(config.html.style._labels) > 1
|
|
521
|
+
else "batch_grid",
|
|
522
|
+
batch_size=len(config.html.style._labels),
|
|
523
|
+
),
|
|
524
|
+
]
|
|
525
|
+
|
|
526
|
+
# words aren't being computed for categorical in spark
|
|
527
|
+
if words and "word_counts" in summary:
|
|
528
|
+
woc = freq_table(
|
|
529
|
+
freqtable=summary["word_counts"],
|
|
530
|
+
n=_get_n(summary["word_counts"]),
|
|
531
|
+
max_number_to_print=10,
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
fqwo = FrequencyTable(
|
|
535
|
+
woc,
|
|
536
|
+
name="Common words",
|
|
537
|
+
anchor_id=f"{varid}cwo",
|
|
538
|
+
redact=config.vars.cat.redact,
|
|
539
|
+
)
|
|
540
|
+
|
|
541
|
+
bottom_items.append(
|
|
542
|
+
Container(
|
|
543
|
+
[fqwo],
|
|
544
|
+
name="Words",
|
|
545
|
+
anchor_id=f"{varid}word",
|
|
546
|
+
sequence_type="grid",
|
|
547
|
+
)
|
|
548
|
+
)
|
|
549
|
+
|
|
550
|
+
# characters aren't being computed for categorical in spark
|
|
551
|
+
if characters and "category_alias_counts" in summary:
|
|
552
|
+
bottom_items.append(
|
|
553
|
+
Container(
|
|
554
|
+
[unitab],
|
|
555
|
+
name="Characters",
|
|
556
|
+
anchor_id=f"{varid}characters",
|
|
557
|
+
sequence_type="grid",
|
|
558
|
+
)
|
|
559
|
+
)
|
|
560
|
+
|
|
561
|
+
# Bottom
|
|
562
|
+
template_variables["bottom"] = Container(
|
|
563
|
+
bottom_items, sequence_type="tabs", anchor_id=f"{varid}bottom"
|
|
564
|
+
)
|
|
565
|
+
|
|
566
|
+
return template_variables
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from data_profiling.config import Settings
|
|
2
|
+
from data_profiling.report.presentation.frequency_table_utils import (
|
|
3
|
+
extreme_obs_table,
|
|
4
|
+
freq_table,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def render_common(config: Settings, summary: dict) -> dict:
|
|
9
|
+
n_extreme_obs = config.n_extreme_obs
|
|
10
|
+
n_freq_table_max = config.n_freq_table_max
|
|
11
|
+
|
|
12
|
+
template_variables = {
|
|
13
|
+
# TODO: with nan
|
|
14
|
+
"freq_table_rows": freq_table(
|
|
15
|
+
freqtable=summary["value_counts_without_nan"],
|
|
16
|
+
n=summary["n"],
|
|
17
|
+
max_number_to_print=n_freq_table_max,
|
|
18
|
+
),
|
|
19
|
+
"firstn_expanded": extreme_obs_table(
|
|
20
|
+
freqtable=summary["value_counts_index_sorted"],
|
|
21
|
+
number_to_print=n_extreme_obs,
|
|
22
|
+
n=summary["n"],
|
|
23
|
+
),
|
|
24
|
+
"lastn_expanded": extreme_obs_table(
|
|
25
|
+
freqtable=summary["value_counts_index_sorted"][::-1],
|
|
26
|
+
number_to_print=n_extreme_obs,
|
|
27
|
+
n=summary["n"],
|
|
28
|
+
),
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return template_variables
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
from data_profiling.config import Settings
|
|
2
|
+
from data_profiling.report.formatters import (
|
|
3
|
+
fmt,
|
|
4
|
+
fmt_bytesize,
|
|
5
|
+
fmt_numeric,
|
|
6
|
+
fmt_percent,
|
|
7
|
+
)
|
|
8
|
+
from data_profiling.report.presentation.core import (
|
|
9
|
+
HTML,
|
|
10
|
+
Container,
|
|
11
|
+
Image,
|
|
12
|
+
Table,
|
|
13
|
+
VariableInfo,
|
|
14
|
+
)
|
|
15
|
+
from data_profiling.visualisation.plot import scatter_complex
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def render_complex(config: Settings, summary: dict) -> dict:
|
|
19
|
+
varid = summary["varid"]
|
|
20
|
+
template_variables = {}
|
|
21
|
+
image_format = config.plot.image_format
|
|
22
|
+
|
|
23
|
+
# Top
|
|
24
|
+
info = VariableInfo(
|
|
25
|
+
summary["varid"],
|
|
26
|
+
summary["varname"],
|
|
27
|
+
"Complex number (ℂ)",
|
|
28
|
+
summary["alerts"],
|
|
29
|
+
summary["description"],
|
|
30
|
+
style=config.html.style,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
table1 = Table(
|
|
34
|
+
[
|
|
35
|
+
{"name": "Distinct", "value": fmt(summary["n_distinct"])},
|
|
36
|
+
{
|
|
37
|
+
"name": "Distinct (%)",
|
|
38
|
+
"value": fmt_percent(summary["p_distinct"]),
|
|
39
|
+
},
|
|
40
|
+
{"name": "Missing", "value": fmt(summary["n_missing"])},
|
|
41
|
+
{
|
|
42
|
+
"name": "Missing (%)",
|
|
43
|
+
"value": fmt_percent(summary["p_missing"]),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "Memory size",
|
|
47
|
+
"value": fmt_bytesize(summary["memory_size"]),
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
style=config.html.style,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
table2 = Table(
|
|
54
|
+
[
|
|
55
|
+
{
|
|
56
|
+
"name": "Mean",
|
|
57
|
+
"value": fmt_numeric(
|
|
58
|
+
summary["mean"], precision=config.report.precision
|
|
59
|
+
),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "Minimum",
|
|
63
|
+
"value": fmt_numeric(summary["min"], precision=config.report.precision),
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "Maximum",
|
|
67
|
+
"value": fmt_numeric(summary["max"], precision=config.report.precision),
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "Zeros",
|
|
71
|
+
"value": fmt_numeric(
|
|
72
|
+
summary["n_zeros"], precision=config.report.precision
|
|
73
|
+
),
|
|
74
|
+
},
|
|
75
|
+
{"name": "Zeros (%)", "value": fmt_percent(summary["p_zeros"])},
|
|
76
|
+
],
|
|
77
|
+
style=config.html.style,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
placeholder = HTML("")
|
|
81
|
+
|
|
82
|
+
template_variables["top"] = Container(
|
|
83
|
+
[info, table1, table2, placeholder], sequence_type="grid"
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
# Bottom
|
|
87
|
+
items = [
|
|
88
|
+
Image(
|
|
89
|
+
scatter_complex(config, summary["scatter_data"]),
|
|
90
|
+
image_format=image_format,
|
|
91
|
+
alt="Scatterplot",
|
|
92
|
+
caption="Scatterplot in the complex plane",
|
|
93
|
+
name="Scatter",
|
|
94
|
+
anchor_id=f"{varid}scatter",
|
|
95
|
+
)
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
bottom = Container(items, sequence_type="tabs", anchor_id=summary["varid"])
|
|
99
|
+
|
|
100
|
+
template_variables["bottom"] = bottom
|
|
101
|
+
|
|
102
|
+
return template_variables
|