pandas-plots 0.9.8__py3-none-any.whl → 0.9.9__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/tbl.py +5 -1
- {pandas_plots-0.9.8.dist-info → pandas_plots-0.9.9.dist-info}/METADATA +1 -1
- pandas_plots-0.9.9.dist-info/RECORD +9 -0
- pandas_plots-0.9.8.dist-info/RECORD +0 -9
- {pandas_plots-0.9.8.dist-info → pandas_plots-0.9.9.dist-info}/LICENSE +0 -0
- {pandas_plots-0.9.8.dist-info → pandas_plots-0.9.9.dist-info}/WHEEL +0 -0
- {pandas_plots-0.9.8.dist-info → pandas_plots-0.9.9.dist-info}/top_level.txt +0 -0
pandas_plots/tbl.py
CHANGED
@@ -326,6 +326,7 @@ def show_num_df(
|
|
326
326
|
df,
|
327
327
|
total_mode: TOTAL_LITERAL = "sum",
|
328
328
|
total_axis: Literal["x", "y", "xy", None] = "xy",
|
329
|
+
total_exclude: bool = False,
|
329
330
|
heatmap_axis: Literal["x", "y", "xy", None] = None,
|
330
331
|
data_bar_axis: Literal["x", "y", "xy", None] = None,
|
331
332
|
pct_axis: Literal["x", "xy", None] = None,
|
@@ -343,7 +344,7 @@ def show_num_df(
|
|
343
344
|
- df: the DataFrame to display
|
344
345
|
- total_mode: a Literal indicating the mode for aggregating totals ["sum", "mean", "median", "min", "max", "std", "var", "skew", "kurt"]
|
345
346
|
- total_axis (Literal["x", "y", "xy", None], optional): The axis for displaying totals. Defaults to "xy".
|
346
|
-
|
347
|
+
- total_exclude (bool, optional): Whether to exclude totals from the coloring in heatmap and data bar. Defaults to False.
|
347
348
|
- heatmap_axis (Literal["x","y","xy", None], optional): The axis for displaying heatmaps. Defaults to None.
|
348
349
|
- data_bar_axis: a Literal indicating the axis for applying data bar coloring ["x","y","xy", None]
|
349
350
|
- pct_axis: a Literal indicating the directions for displaying percentages ["x","xy", None]. "x" means sum up pct per column
|
@@ -443,6 +444,8 @@ def show_num_df(
|
|
443
444
|
color=f"{color_highlight}",
|
444
445
|
axis=0 if data_bar_axis == "x" else 1 if data_bar_axis == "y" else None,
|
445
446
|
width=100,
|
447
|
+
# * apply subset if total_exclude
|
448
|
+
subset=(df_orig.index, df_orig.columns) if total_exclude else None,
|
446
449
|
# align="zero",
|
447
450
|
)
|
448
451
|
|
@@ -592,6 +595,7 @@ def show_num_df(
|
|
592
595
|
out.background_gradient(
|
593
596
|
cmap=cmap_heat,
|
594
597
|
axis=None if heatmap_axis == "xy" else 0 if heatmap_axis == "y" else 1,
|
598
|
+
subset=(df_orig.index, df_orig.columns) if total_exclude else None,
|
595
599
|
)
|
596
600
|
|
597
601
|
return out
|
@@ -0,0 +1,9 @@
|
|
1
|
+
pandas_plots/hlp.py,sha256=JBLXq7MX1kmtC5W3AKy7Z64hrHbux-5FoaYdim5-BNo,8508
|
2
|
+
pandas_plots/pls.py,sha256=zp9GBNcCi1UBy0X1yrZMYQGtYmRflWcbSWZZCPr537E,28671
|
3
|
+
pandas_plots/tbl.py,sha256=EYzmvbP8zx2KLSfJDO2Y2k7OlsRk1Oeyyfu4SZhPWRM,23190
|
4
|
+
pandas_plots/ven.py,sha256=nDKS7cTIHOJhIXKnAxAkEoqPgVZCUPJld5CvSiB2JC4,11721
|
5
|
+
pandas_plots-0.9.9.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
|
6
|
+
pandas_plots-0.9.9.dist-info/METADATA,sha256=CvojP325Iy4Brvd3zgG8hq12zmQ4RMQPOtYthU8jsEI,6259
|
7
|
+
pandas_plots-0.9.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
8
|
+
pandas_plots-0.9.9.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
|
9
|
+
pandas_plots-0.9.9.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
pandas_plots/hlp.py,sha256=JBLXq7MX1kmtC5W3AKy7Z64hrHbux-5FoaYdim5-BNo,8508
|
2
|
-
pandas_plots/pls.py,sha256=zp9GBNcCi1UBy0X1yrZMYQGtYmRflWcbSWZZCPr537E,28671
|
3
|
-
pandas_plots/tbl.py,sha256=7JhaBo-_UgEvDw6as8hzGMhggxD366kn5DLRzVfSe3Y,22826
|
4
|
-
pandas_plots/ven.py,sha256=nDKS7cTIHOJhIXKnAxAkEoqPgVZCUPJld5CvSiB2JC4,11721
|
5
|
-
pandas_plots-0.9.8.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
|
6
|
-
pandas_plots-0.9.8.dist-info/METADATA,sha256=4Bg03OgJofKt_e8Gg2psHWrAIhYDHzq2Torf0Oz10-k,6259
|
7
|
-
pandas_plots-0.9.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
8
|
-
pandas_plots-0.9.8.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
|
9
|
-
pandas_plots-0.9.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|