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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pandas-plots
3
- Version: 0.8.10
3
+ Version: 0.8.12
4
4
  Summary: A collection of helper for table handling and vizualization
5
5
  Home-page: https://github.com/smeisegeier/pandas-plots
6
6
  Author: smeisegeier
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = pandas-plots
3
- version = 0.8.10
3
+ version = 0.8.12
4
4
  author = smeisegeier
5
5
  author_email = dexterDSDo@googlemail.com
6
6
  description = A collection of helper for table handling and vizualization
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pandas-plots
3
- Version: 0.8.10
3
+ Version: 0.8.12
4
4
  Summary: A collection of helper for table handling and vizualization
5
5
  Home-page: https://github.com/smeisegeier/pandas-plots
6
6
  Author: smeisegeier
File without changes
File without changes