pandas-plots 0.11.7__py3-none-any.whl → 0.11.9__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/hlp.py +6 -2
- pandas_plots/pii.py +4 -2
- {pandas_plots-0.11.7.dist-info → pandas_plots-0.11.9.dist-info}/METADATA +2 -2
- pandas_plots-0.11.9.dist-info/RECORD +10 -0
- pandas_plots-0.11.7.dist-info/RECORD +0 -10
- {pandas_plots-0.11.7.dist-info → pandas_plots-0.11.9.dist-info}/LICENSE +0 -0
- {pandas_plots-0.11.7.dist-info → pandas_plots-0.11.9.dist-info}/WHEEL +0 -0
- {pandas_plots-0.11.7.dist-info → pandas_plots-0.11.9.dist-info}/top_level.txt +0 -0
pandas_plots/hlp.py
CHANGED
@@ -271,7 +271,7 @@ def add_datetime_columns(df: pd.DataFrame, date_column: str = None) -> pd.DataFr
|
|
271
271
|
|
272
272
|
|
273
273
|
def show_package_version(
|
274
|
-
packages: list[str] =
|
274
|
+
packages: list[str] = None,
|
275
275
|
sep: str = " | ",
|
276
276
|
include_demo_packages: bool = True,
|
277
277
|
) -> None:
|
@@ -286,6 +286,10 @@ def show_package_version(
|
|
286
286
|
Returns:
|
287
287
|
None
|
288
288
|
"""
|
289
|
+
# ! avoid empty list in signature, it will NOT be empty in runtime
|
290
|
+
if packages is None:
|
291
|
+
packages = []
|
292
|
+
|
289
293
|
if not isinstance(packages, List):
|
290
294
|
print(f"❌ A list of str must be provided")
|
291
295
|
return
|
@@ -307,7 +311,7 @@ def show_package_version(
|
|
307
311
|
items.append(f"📦 {item}: {version}")
|
308
312
|
except md.PackageNotFoundError:
|
309
313
|
items.append(f"❌ {item}: Not found")
|
310
|
-
print(sep.join(items))
|
314
|
+
print('\n',sep.join(items))
|
311
315
|
return
|
312
316
|
|
313
317
|
class OperatingSystem(Enum):
|
pandas_plots/pii.py
CHANGED
@@ -67,8 +67,10 @@ def remove_pii(
|
|
67
67
|
print(f"found {idx_all.__len__():_} pii items:")
|
68
68
|
print(col.loc[idx_all].tolist())
|
69
69
|
|
70
|
-
if logging:
|
70
|
+
if logging: # Assuming logging is defined and has the correct value
|
71
|
+
data = col.loc[idx_all] # Assuming col and idx_all are defined
|
71
72
|
with open(".pii.log", "w") as f:
|
72
|
-
|
73
|
+
# ! when using str(), it will give only a summary!
|
74
|
+
f.write(data.to_string(index=True))
|
73
75
|
|
74
76
|
return idx_all
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pandas-plots
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.9
|
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
|
@@ -43,7 +43,7 @@ pip install pandas-plots -U
|
|
43
43
|
include in python
|
44
44
|
|
45
45
|
```python
|
46
|
-
from pandas_plots import tbl, pls, ven, hlp
|
46
|
+
from pandas_plots import tbl, pls, ven, hlp, pii
|
47
47
|
```
|
48
48
|
|
49
49
|
## example
|
@@ -0,0 +1,10 @@
|
|
1
|
+
pandas_plots/hlp.py,sha256=Ug3RGok3Bn_FiPjfmd-_gNskSfzfVplQKR1XQFeykHA,11898
|
2
|
+
pandas_plots/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
|
3
|
+
pandas_plots/pls.py,sha256=BzZge7TnECjCs47MZ7P63_y2WU23P9sLaMl7SKB5h1Q,35043
|
4
|
+
pandas_plots/tbl.py,sha256=3mGLD11W6-KyD3XEL74F1OceyPGtqluqFvmL4Qv8PZo,23766
|
5
|
+
pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
|
6
|
+
pandas_plots-0.11.9.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
|
7
|
+
pandas_plots-0.11.9.dist-info/METADATA,sha256=yHXedcTr7mLY1KVA5bHXmTi7UdJT3jWwtCKzzwuHFEU,6824
|
8
|
+
pandas_plots-0.11.9.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
9
|
+
pandas_plots-0.11.9.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
|
10
|
+
pandas_plots-0.11.9.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
pandas_plots/hlp.py,sha256=rlNCOHglkDZWNuf7aeNeatXvOXGLxuxd-iWQf5m0We0,11768
|
2
|
-
pandas_plots/pii.py,sha256=9he5NsbyyYqsuQWmZYIvwYiyxCuKTZBPNNxBcQNxF_E,1998
|
3
|
-
pandas_plots/pls.py,sha256=BzZge7TnECjCs47MZ7P63_y2WU23P9sLaMl7SKB5h1Q,35043
|
4
|
-
pandas_plots/tbl.py,sha256=3mGLD11W6-KyD3XEL74F1OceyPGtqluqFvmL4Qv8PZo,23766
|
5
|
-
pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
|
6
|
-
pandas_plots-0.11.7.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
|
7
|
-
pandas_plots-0.11.7.dist-info/METADATA,sha256=jI2HEo-3ClWKn053IIW9a-vXr1PSW8ExO5krLJAIKBo,6819
|
8
|
-
pandas_plots-0.11.7.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
9
|
-
pandas_plots-0.11.7.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
|
10
|
-
pandas_plots-0.11.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|