pandas-plots 0.11.26__tar.gz → 0.11.28__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.11.26/src/pandas_plots.egg-info → pandas_plots-0.11.28}/PKG-INFO +2 -2
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/setup.cfg +2 -2
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots/tbl.py +7 -1
- {pandas_plots-0.11.26 → pandas_plots-0.11.28/src/pandas_plots.egg-info}/PKG-INFO +2 -2
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots.egg-info/requires.txt +1 -1
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/LICENSE +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/README.md +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/pyproject.toml +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots/hlp.py +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots/pii.py +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots/pls.py +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots/ven.py +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots.egg-info/SOURCES.txt +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots.egg-info/dependency_links.txt +0 -0
- {pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pandas-plots
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.28
|
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
|
@@ -31,7 +31,7 @@ Requires-Dist: missingno>=0.5.2
|
|
31
31
|
Requires-Dist: duckdb>=1.0.0
|
32
32
|
Requires-Dist: kaleido>=0.2.0
|
33
33
|
Requires-Dist: nbformat>=4.2.0
|
34
|
-
Requires-Dist: dataframe_image
|
34
|
+
Requires-Dist: dataframe_image>=0.2.6
|
35
35
|
|
36
36
|
# pandas-plots
|
37
37
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[metadata]
|
2
2
|
name = pandas-plots
|
3
|
-
version = 0.11.
|
3
|
+
version = 0.11.28
|
4
4
|
author = smeisegeier
|
5
5
|
author_email = dexterDSDo@googlemail.com
|
6
6
|
description = A collection of helper for table handling and visualization
|
@@ -37,7 +37,7 @@ install_requires =
|
|
37
37
|
duckdb >= 1.0.0
|
38
38
|
kaleido >= 0.2.0
|
39
39
|
nbformat >= 4.2.0
|
40
|
-
dataframe_image
|
40
|
+
dataframe_image >= 0.2.6
|
41
41
|
|
42
42
|
[egg_info]
|
43
43
|
tag_build =
|
@@ -275,6 +275,7 @@ def pivot_df(
|
|
275
275
|
font_size_th: int = 0,
|
276
276
|
font_size_td: int = 0,
|
277
277
|
png_path: str | Path = None,
|
278
|
+
png_conversion: Literal["chrome", "selenium"] = "selenium",
|
278
279
|
) -> pd.DataFrame:
|
279
280
|
"""
|
280
281
|
A function to pivot a DataFrame based on specified parameters hand over to the *show_num_df* function.
|
@@ -311,6 +312,7 @@ def pivot_df(
|
|
311
312
|
font_size_th (int, optional): The font size for the header. Defaults to 0.
|
312
313
|
font_size_td (int, optional): The font size for the table data. Defaults to 0.
|
313
314
|
png_path (str | Path, optional): The path to save the output PNG file. Defaults to None.
|
315
|
+
png_conversion (Literal["chrome", "selenium"], optional): The conversion method for the PNG file. Defaults to "selenium".
|
314
316
|
|
315
317
|
Returns:
|
316
318
|
pd.DataFrame: The pivoted DataFrame.
|
@@ -397,6 +399,8 @@ def pivot_df(
|
|
397
399
|
font_size_th=font_size_th,
|
398
400
|
font_size_td=font_size_td,
|
399
401
|
png_path=png_path,
|
402
|
+
png_conversion=png_conversion,
|
403
|
+
|
400
404
|
)
|
401
405
|
|
402
406
|
|
@@ -418,6 +422,7 @@ def show_num_df(
|
|
418
422
|
font_size_th: int = 0,
|
419
423
|
font_size_td: int = 0,
|
420
424
|
png_path: str | Path = None,
|
425
|
+
png_conversion: Literal["chrome", "selenium"] = "selenium",
|
421
426
|
):
|
422
427
|
"""
|
423
428
|
A function to display a DataFrame with various options for styling and formatting, including the ability to show totals, apply data bar coloring, and control the display precision.
|
@@ -446,6 +451,7 @@ def show_num_df(
|
|
446
451
|
- font_size_th: an integer indicating the font size for the header
|
447
452
|
- font_size_td: an integer indicating the font size for the table data
|
448
453
|
- png_path: a string or Path indicating the path to save the PNG file
|
454
|
+
- png_conversion: a Literal indicating the conversion method for the PNG file ["chrome", "selenium"]
|
449
455
|
|
450
456
|
The function returns a styled representation of the DataFrame.
|
451
457
|
"""
|
@@ -689,7 +695,7 @@ def show_num_df(
|
|
689
695
|
|
690
696
|
if png_path is not None:
|
691
697
|
# * 72dpi default is too low for high res displays
|
692
|
-
dfi.export(obj=out, filename=png_path, dpi=
|
698
|
+
dfi.export(obj=out, filename=png_path, dpi=150, table_conversion=png_conversion)
|
693
699
|
|
694
700
|
return out
|
695
701
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pandas-plots
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.28
|
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
|
@@ -31,7 +31,7 @@ Requires-Dist: missingno>=0.5.2
|
|
31
31
|
Requires-Dist: duckdb>=1.0.0
|
32
32
|
Requires-Dist: kaleido>=0.2.0
|
33
33
|
Requires-Dist: nbformat>=4.2.0
|
34
|
-
Requires-Dist: dataframe_image
|
34
|
+
Requires-Dist: dataframe_image>=0.2.6
|
35
35
|
|
36
36
|
# pandas-plots
|
37
37
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pandas_plots-0.11.26 → pandas_plots-0.11.28}/src/pandas_plots.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|