pandas-plots 0.11.13__tar.gz → 0.11.15__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.13/src/pandas_plots.egg-info → pandas_plots-0.11.15}/PKG-INFO +2 -2
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/setup.cfg +2 -2
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/src/pandas_plots/hlp.py +9 -8
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/src/pandas_plots/tbl.py +10 -12
- {pandas_plots-0.11.13 → pandas_plots-0.11.15/src/pandas_plots.egg-info}/PKG-INFO +2 -2
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/src/pandas_plots.egg-info/requires.txt +1 -1
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/LICENSE +0 -0
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/README.md +0 -0
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/pyproject.toml +0 -0
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/src/pandas_plots/pii.py +0 -0
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/src/pandas_plots/pls.py +0 -0
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/src/pandas_plots/ven.py +0 -0
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/src/pandas_plots.egg-info/SOURCES.txt +0 -0
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/src/pandas_plots.egg-info/dependency_links.txt +0 -0
- {pandas_plots-0.11.13 → pandas_plots-0.11.15}/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.15
|
4
4
|
Summary: A collection of helper for table handling and vizualization
|
5
5
|
Home-page: https://github.com/smeisegeier/pandas-plots
|
6
6
|
Author: smeisegeier
|
@@ -22,7 +22,7 @@ License-File: LICENSE
|
|
22
22
|
Requires-Dist: pandas>=2.0.0
|
23
23
|
Requires-Dist: plotly>=5.18.0
|
24
24
|
Requires-Dist: matplotlib>=3.8.2
|
25
|
-
Requires-Dist: matplotlib-venn
|
25
|
+
Requires-Dist: matplotlib-venn==0.11.10
|
26
26
|
Requires-Dist: seaborn>=0.13.2
|
27
27
|
Requires-Dist: Jinja2>=3.1.4
|
28
28
|
Requires-Dist: requests>=2.32.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[metadata]
|
2
2
|
name = pandas-plots
|
3
|
-
version = 0.11.
|
3
|
+
version = 0.11.15
|
4
4
|
author = smeisegeier
|
5
5
|
author_email = dexterDSDo@googlemail.com
|
6
6
|
description = A collection of helper for table handling and vizualization
|
@@ -28,7 +28,7 @@ install_requires =
|
|
28
28
|
pandas >= 2.0.0
|
29
29
|
plotly >= 5.18.0
|
30
30
|
matplotlib >= 3.8.2
|
31
|
-
matplotlib-venn
|
31
|
+
matplotlib-venn == 0.11.10
|
32
32
|
seaborn >= 0.13.2
|
33
33
|
Jinja2 >= 3.1.4
|
34
34
|
requests >= 2.32.0
|
@@ -321,33 +321,34 @@ class OperatingSystem(Enum):
|
|
321
321
|
MAC = auto()
|
322
322
|
|
323
323
|
|
324
|
-
def get_os(
|
324
|
+
def get_os(is_os: OperatingSystem = None, verbose: bool = False) -> bool | str:
|
325
325
|
"""
|
326
|
-
A function that checks the operating system and returns a boolean value based on the
|
326
|
+
A function that checks the operating system and returns a boolean value based on the operating system to check.
|
327
327
|
|
328
328
|
Parameters:
|
329
|
-
|
329
|
+
is_os (OperatingSystem): The operating system to check against. Defaults to None.
|
330
330
|
Values are
|
331
331
|
- OperatingSystem.WINDOWS
|
332
332
|
- OperatingSystem.LINUX
|
333
333
|
- OperatingSystem.MAC
|
334
334
|
|
335
335
|
Returns:
|
336
|
-
bool: True if the desired operating system matches the current operating system, False otherwise.
|
336
|
+
bool: True if the desired operating system matches the current operating system, False otherwise.
|
337
|
+
str: Returns the current operating system (platform.system()) if is_os is None.
|
337
338
|
"""
|
338
339
|
if verbose:
|
339
340
|
print(
|
340
341
|
f"💻 os: {os.name} | 🎯 system: {platform.system()} | 💽 release: {platform.release()}"
|
341
342
|
)
|
342
343
|
|
343
|
-
if
|
344
|
+
if is_os is None:
|
344
345
|
return platform.system()
|
345
346
|
|
346
|
-
if
|
347
|
+
if is_os == OperatingSystem.WINDOWS and platform.system() == "Windows":
|
347
348
|
return True
|
348
|
-
elif
|
349
|
+
elif is_os == OperatingSystem.LINUX and platform.system() == "Linux":
|
349
350
|
return True
|
350
|
-
elif
|
351
|
+
elif is_os == OperatingSystem.MAC and platform.system() == "Darwin":
|
351
352
|
return True
|
352
353
|
else:
|
353
354
|
return False
|
@@ -100,8 +100,6 @@ def describe_df(
|
|
100
100
|
# print(f"🟣 shape: ({df.shape[0]:_}, {df.shape[1]}) columns: {df.columns.tolist()} ")
|
101
101
|
print(f"🟣 duplicates: {df.duplicated().sum():_}")
|
102
102
|
print(f"🟣 missings: {dict(df.isna().sum())}")
|
103
|
-
print("--- column uniques (all)")
|
104
|
-
print(f"🟠 index {wrap_text(df.index.tolist()[:top_n_uniques])}")
|
105
103
|
|
106
104
|
def get_uniques_header(col: str):
|
107
105
|
# * sorting has issues when col is of mixed type (object)
|
@@ -114,19 +112,19 @@ def describe_df(
|
|
114
112
|
header = f"🟠 {col}({len(unis):_}|{df[col].dtype})"
|
115
113
|
return unis, header
|
116
114
|
|
117
|
-
#
|
115
|
+
# hack this block somehow interferes with the plotly renderer. so its run even when use_columns=False
|
116
|
+
if use_columns:
|
117
|
+
print("--- column uniques (all)")
|
118
|
+
print(f"🟠 index {wrap_text(df.index.tolist()[:top_n_uniques])}")
|
118
119
|
for col in df.columns[:]:
|
119
120
|
_u, _h = get_uniques_header(col)
|
121
|
+
# * check col type
|
122
|
+
is_str = df.loc[:, col].dtype.kind == "O"
|
123
|
+
# * wrap output
|
120
124
|
if use_columns:
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
print(
|
125
|
-
f"{_h} {wrap_text(_u[:top_n_uniques], max_items_in_line=70, use_apo=is_str)}"
|
126
|
-
)
|
127
|
-
# print(f"{_h} {_u[:top_n_uniques]}")
|
128
|
-
else:
|
129
|
-
print(f"{_h}")
|
125
|
+
print(
|
126
|
+
f"{_h} {wrap_text(_u[:top_n_uniques], max_items_in_line=70, use_apo=is_str)}"
|
127
|
+
)
|
130
128
|
|
131
129
|
print("--- column stats (numeric)")
|
132
130
|
# * only show numerics
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pandas-plots
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.15
|
4
4
|
Summary: A collection of helper for table handling and vizualization
|
5
5
|
Home-page: https://github.com/smeisegeier/pandas-plots
|
6
6
|
Author: smeisegeier
|
@@ -22,7 +22,7 @@ License-File: LICENSE
|
|
22
22
|
Requires-Dist: pandas>=2.0.0
|
23
23
|
Requires-Dist: plotly>=5.18.0
|
24
24
|
Requires-Dist: matplotlib>=3.8.2
|
25
|
-
Requires-Dist: matplotlib-venn
|
25
|
+
Requires-Dist: matplotlib-venn==0.11.10
|
26
26
|
Requires-Dist: seaborn>=0.13.2
|
27
27
|
Requires-Dist: Jinja2>=3.1.4
|
28
28
|
Requires-Dist: requests>=2.32.0
|
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.13 → pandas_plots-0.11.15}/src/pandas_plots.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|