pandas-plots 0.15.7__tar.gz → 0.15.8__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.3
2
2
  Name: pandas-plots
3
- Version: 0.15.7
3
+ Version: 0.15.8
4
4
  Summary: A collection of helper for table handling and visualization
5
5
  Keywords: tables,pivot,plotly,venn,plot,vizualization
6
6
  Author: smeisegeier
@@ -26,7 +26,7 @@ Requires-Dist: duckdb>=1.3.0
26
26
  Requires-Dist: nbformat>=4.2.0
27
27
  Requires-Dist: dataframe-image>=0.2.6
28
28
  Requires-Dist: connection-helper>=0.12
29
- Requires-Python: >=3.12
29
+ Requires-Python: ~=3.12.0
30
30
  Project-URL: Bug Tracker, https://github.com/smeisegeier/pandas-plots/issues
31
31
  Project-URL: Homepage, https://github.com/smeisegeier/pandas-plots
32
32
  Project-URL: Repository, https://github.com/smeisegeier/pandas-plots
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "pandas-plots"
3
- version = "0.15.7"
3
+ version = "0.15.8"
4
4
  description = "A collection of helper for table handling and visualization"
5
5
  long_description = "file: README.md"
6
6
  long_description_content_type = "text/markdown"
7
7
  readme = "README.md"
8
- requires-python = ">=3.12"
8
+ requires-python = "~=3.12.0"
9
9
  keywords = ["tables", "pivot", "plotly", "venn", "plot", "vizualization"]
10
10
  authors = [
11
11
  { name = "smeisegeier", email = "dexterDSD@googlemail.com" },
@@ -76,11 +76,11 @@ def describe_df(
76
76
  use_plot: bool = True,
77
77
  use_columns: bool = True,
78
78
  use_missing: bool = False,
79
- renderer: Literal["png", "svg", None] = "png",
79
+ renderer: Literal["png", "svg", None] = None,
80
80
  fig_cols: int = 5,
81
81
  fig_offset: int = None,
82
82
  fig_rowheight: int = 300,
83
- fig_width: int = 400,
83
+ fig_width: int = 300,
84
84
  sort_mode: Literal["value", "index"] = "value",
85
85
  top_n_uniques: int = 5,
86
86
  top_n_chars_in_index: int = 0,
@@ -256,11 +256,14 @@ def describe_df(
256
256
  # * add trace to fig, only data not layout, only 1 series
257
257
  fig.add_trace(figsub["data"][0], row=_row, col=_col)
258
258
 
259
- # * set template
259
+ # * set template and layout size
260
260
  fig.update_layout(
261
- template="plotly_dark" if os.getenv("THEME") == "dark" else "plotly"
261
+ template="plotly_dark" if os.getenv("THEME") == "dark" else "plotly",
262
+ width=fig_width * fig_cols, # <-- Set width here
263
+ height=fig_rowheight * fig_rows, # <-- Set height here
262
264
  )
263
- fig.show(renderer, width=fig_width * fig_cols, height=fig_rowheight * fig_rows)
265
+
266
+ fig.show(renderer)
264
267
 
265
268
  if use_missing:
266
269
  import missingno as msno
File without changes