pandas-plots 0.15.6__tar.gz → 0.15.7__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.6
3
+ Version: 0.15.7
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.10
29
+ Requires-Python: >=3.12
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.6"
3
+ version = "0.15.7"
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.10"
8
+ requires-python = ">=3.12"
9
9
  keywords = ["tables", "pivot", "plotly", "venn", "plot", "vizualization"]
10
10
  authors = [
11
11
  { name = "smeisegeier", email = "dexterDSD@googlemail.com" },
@@ -6,7 +6,7 @@ import os
6
6
  from collections import abc
7
7
  from pathlib import Path
8
8
  from typing import Literal, get_args
9
- import numpy as np
9
+ from IPython.display import display, HTML
10
10
 
11
11
  import numpy as np
12
12
  import pandas as pd
@@ -15,7 +15,7 @@ from plotly.subplots import make_subplots
15
15
  from scipy import stats
16
16
  import dataframe_image as dfi
17
17
 
18
- from .hlp import wrap_text, to_series
18
+ from .hlp import wrap_text
19
19
 
20
20
  import duckdb as ddb
21
21
 
@@ -53,11 +53,21 @@ def descr_db(
53
53
  -------
54
54
  None
55
55
  """
56
+
57
+ # * ensure markdown is correctly rendered
58
+ is_print = (os.getenv("RENDERER") in ('png', 'svg'))
59
+
60
+ # * wide tables are not properly rendered in markdown
61
+ width = 220 if is_print else 2000
62
+
63
+ if is_print:
64
+ display(HTML("<br>"))
65
+
56
66
  cols = ", ".join(db.columns)
57
67
  print(f'🗄️ {caption}\t{db.count("*").fetchone()[0]:_}, {db.columns.__len__()}\n\t("{cols}")')
58
-
68
+
59
69
  if use_preview:
60
- db.limit(3).show(max_width=2000)
70
+ db.limit(3).show(max_width=width)
61
71
  return
62
72
 
63
73
  def describe_df(
File without changes