pandas-plots 0.8.10__tar.gz → 0.8.12__tar.gz
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.
- {pandas-plots-0.8.10/src/pandas_plots.egg-info → pandas-plots-0.8.12}/PKG-INFO +1 -1
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/setup.cfg +1 -1
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots/tbl.py +2 -2
- {pandas-plots-0.8.10 → pandas-plots-0.8.12/src/pandas_plots.egg-info}/PKG-INFO +1 -1
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/LICENSE +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/README.md +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/pyproject.toml +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots/__init__.py +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots/pls.py +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots/sql.py +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots/txt.py +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots/ven.py +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots.egg-info/SOURCES.txt +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots.egg-info/dependency_links.txt +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots.egg-info/requires.txt +0 -0
- {pandas-plots-0.8.10 → pandas-plots-0.8.12}/src/pandas_plots.egg-info/top_level.txt +0 -0
@@ -364,7 +364,7 @@ def show_num_df(
|
|
364
364
|
print(f"❌ kpi_mode '{kpi_mode}' not supported")
|
365
365
|
return
|
366
366
|
|
367
|
-
if kpi_mode and (not isinstance(kpi_rag_list, abc.Iterable)
|
367
|
+
if kpi_mode.startswith("rag") and (not isinstance(kpi_rag_list, abc.Iterable)
|
368
368
|
or len(kpi_rag_list) != 2
|
369
369
|
):
|
370
370
|
print(f"❌ kpi_rag_list must be a list of 2 if kpi_mode is set")
|
@@ -516,7 +516,7 @@ def show_num_df(
|
|
516
516
|
"""
|
517
517
|
# * calc sum depending on pct_axis
|
518
518
|
sum_=tbl_sum if pct_axis=="xy" else col_sum[col] if pct_axis=="x" else val
|
519
|
-
val_rel= val / sum_
|
519
|
+
val_rel= 0 if sum_== 0 else val / sum_
|
520
520
|
|
521
521
|
# * get kpi icon
|
522
522
|
kpi = get_kpi(val, col=col)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|