pandas-plots 0.11.26__py3-none-any.whl → 0.11.28__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 CHANGED
@@ -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=120)
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.26
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==0.2.3
34
+ Requires-Dist: dataframe_image>=0.2.6
35
35
 
36
36
  # pandas-plots
37
37
 
@@ -0,0 +1,10 @@
1
+ pandas_plots/hlp.py,sha256=N6NrbFagVMMX-ZnV0rIBEz82SeSoOkksfMcCap55W7E,16588
2
+ pandas_plots/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
3
+ pandas_plots/pls.py,sha256=U-tjh0DnYQYg-n02hh_HyvObMerkGCBP8tirKFIEEn4,37376
4
+ pandas_plots/tbl.py,sha256=kWe_H1hhJHOQR7SjTEUjRVCFxUW4VmH1EiuB2ZO0RWU,30241
5
+ pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
6
+ pandas_plots-0.11.28.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
7
+ pandas_plots-0.11.28.dist-info/METADATA,sha256=yyYVb7ye0ab4fWcidpiCle9fd-p_f9lWEau2E8gKg3o,7258
8
+ pandas_plots-0.11.28.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
9
+ pandas_plots-0.11.28.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
10
+ pandas_plots-0.11.28.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- pandas_plots/hlp.py,sha256=N6NrbFagVMMX-ZnV0rIBEz82SeSoOkksfMcCap55W7E,16588
2
- pandas_plots/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
3
- pandas_plots/pls.py,sha256=U-tjh0DnYQYg-n02hh_HyvObMerkGCBP8tirKFIEEn4,37376
4
- pandas_plots/tbl.py,sha256=vnaRonXKntFePMX8U5pF92HMp04bxiQ6s4ZNninnlfU,29797
5
- pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
6
- pandas_plots-0.11.26.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
7
- pandas_plots-0.11.26.dist-info/METADATA,sha256=9FNqRPjwHGYxsWn9VOy5w8xlSS1sKgVe73f2iwkLNrw,7258
8
- pandas_plots-0.11.26.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
9
- pandas_plots-0.11.26.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
10
- pandas_plots-0.11.26.dist-info/RECORD,,