pandas-plots 0.12.18__py3-none-any.whl → 0.12.19__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.
pandas_plots/pls.py CHANGED
@@ -340,7 +340,7 @@ def plot_stacked_bars(
340
340
  _title_str_top_index = f"TOP{top_n_index} " if top_n_index > 0 else ""
341
341
  _title_str_top_color = f"TOP{top_n_color} " if top_n_color > 0 else ""
342
342
  _title_str_null = f", NULL excluded" if dropna else ""
343
- _title_str_n = f", n={n:_}"
343
+ _title_str_n = f", n={len(df):_} ({n:_})"
344
344
 
345
345
  _df = df.copy().assign(facet=None)
346
346
  _df.columns = (
@@ -653,7 +653,7 @@ def plot_bars(
653
653
 
654
654
  # * title str n
655
655
  _title_str_n = (
656
- f", n={n:_}" if not use_ci else f", n={n_len:_}<br><sub>ci(95) on means<sub>"
656
+ f", n={n_len:_} ({n:_})" if not use_ci else f", n={n_len:_})<br><sub>ci(95) on means<sub>"
657
657
  )
658
658
 
659
659
  # * title str na
@@ -1325,6 +1325,8 @@ def plot_facet_stacked_bars(
1325
1325
  df["value"] = 1
1326
1326
  elif df.shape[1] == 4:
1327
1327
  df.columns = ["index", "col", "facet", "value"]
1328
+
1329
+ n = df["value"].sum()
1328
1330
 
1329
1331
  aggregated_df = aggregate_data(
1330
1332
  df,
@@ -1427,7 +1429,7 @@ def plot_facet_stacked_bars(
1427
1429
  else:
1428
1430
  axis_details.append(f"[{original_column_names[2]}]")
1429
1431
 
1430
- title = f"{caption} {', '.join(axis_details)}, n = {original_rows:_}"
1432
+ title = f"{caption} {', '.join(axis_details)}, n = {original_rows:_} ({n:_})"
1431
1433
  template = "plotly_dark" if os.getenv("THEME") == "dark" else "plotly"
1432
1434
 
1433
1435
  fig.update_layout(
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: pandas-plots
3
- Version: 0.12.18
3
+ Version: 0.12.19
4
4
  Summary: A collection of helper for table handling and visualization
5
5
  Home-page: https://github.com/smeisegeier/pandas-plots
6
6
  Author: smeisegeier
7
7
  Author-email: dexterDSDo@googlemail.com
8
- License: MIT License
8
+ License: "MIT"
9
9
  Project-URL: Documentation, https://github.com/smeisegeier/pandas-plots
10
10
  Project-URL: Source Code, https://github.com/smeisegeier/pandas-plots
11
11
  Project-URL: Bug Tracker, https://github.com/smeisegeier/pandas-plots/issues
@@ -32,6 +32,7 @@ Requires-Dist: duckdb>=1.0.0
32
32
  Requires-Dist: kaleido>=0.2.0
33
33
  Requires-Dist: nbformat>=4.2.0
34
34
  Requires-Dist: dataframe_image>=0.2.6
35
+ Dynamic: license-file
35
36
 
36
37
  # pandas-plots
37
38
 
@@ -0,0 +1,11 @@
1
+ pandas_plots/hlp.py,sha256=hlz7kKe6iDsz6Ov5YadX9zT5E01DHy7gHdVPgG8P7nQ,19656
2
+ pandas_plots/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
3
+ pandas_plots/pls.py,sha256=S9hKQTPp8XIL9RmzvfeSQE4t2jm18bG4bejwcd-dJF4,48236
4
+ pandas_plots/tbl.py,sha256=LxMKJh4qkGuQZ1DdCZIq1tMS26F6elsqbe_uabvQx4E,32535
5
+ pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
6
+ pandas_plots-0.12.19.dist-info/licenses/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
7
+ pandas_plots-0.12.19.dist-info/METADATA,sha256=qvKq6iuJK8dg9hXtwz8f0djqvtjdXmCQBbly_opRf40,7566
8
+ pandas_plots-0.12.19.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
9
+ pandas_plots-0.12.19.dist-info/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
10
+ pandas_plots-0.12.19.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
11
+ pandas_plots-0.12.19.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (77.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,11 +0,0 @@
1
- pandas_plots/hlp.py,sha256=hlz7kKe6iDsz6Ov5YadX9zT5E01DHy7gHdVPgG8P7nQ,19656
2
- pandas_plots/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
3
- pandas_plots/pls.py,sha256=YbWPk34oJ3SJ-n7O-FvMOYR2FT2uNbMe93E0dbVTetk,48170
4
- pandas_plots/tbl.py,sha256=LxMKJh4qkGuQZ1DdCZIq1tMS26F6elsqbe_uabvQx4E,32535
5
- pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
6
- pandas_plots-0.12.18.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
7
- pandas_plots-0.12.18.dist-info/METADATA,sha256=0JzJDbgvUgQAIsn3X3bj4B1ZVaU2L1U0SegY2OVgEH8,7550
8
- pandas_plots-0.12.18.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
9
- pandas_plots-0.12.18.dist-info/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
10
- pandas_plots-0.12.18.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
11
- pandas_plots-0.12.18.dist-info/RECORD,,