pandas-plots 0.11.6__tar.gz → 0.11.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.
- {pandas_plots-0.11.6/src/pandas_plots.egg-info → pandas_plots-0.11.8}/PKG-INFO +1 -1
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/setup.cfg +1 -1
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots/pii.py +10 -5
- {pandas_plots-0.11.6 → pandas_plots-0.11.8/src/pandas_plots.egg-info}/PKG-INFO +1 -1
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/LICENSE +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/README.md +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/pyproject.toml +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots/hlp.py +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots/pls.py +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots/tbl.py +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots/ven.py +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots.egg-info/SOURCES.txt +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots.egg-info/dependency_links.txt +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots.egg-info/requires.txt +0 -0
- {pandas_plots-0.11.6 → pandas_plots-0.11.8}/src/pandas_plots.egg-info/top_level.txt +0 -0
@@ -14,11 +14,14 @@ def remove_pii(
|
|
14
14
|
Parameters:
|
15
15
|
- series: A pandas Series representing a column in a DataFrame.
|
16
16
|
- verbose: If True, print pii items
|
17
|
-
- logging: If True, write pii items into .pii.log
|
17
|
+
- logging: If True, write pii items into the file .pii.log
|
18
18
|
- custom_regex: Regex that is injected into detection
|
19
19
|
|
20
20
|
Returns:
|
21
|
-
-
|
21
|
+
- index object with indexes of all pii items
|
22
|
+
|
23
|
+
Remarks:
|
24
|
+
- df.drop(axis=0, index=result, inplace=True)
|
22
25
|
"""
|
23
26
|
|
24
27
|
# * reject empty columns
|
@@ -64,8 +67,10 @@ def remove_pii(
|
|
64
67
|
print(f"found {idx_all.__len__():_} pii items:")
|
65
68
|
print(col.loc[idx_all].tolist())
|
66
69
|
|
67
|
-
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
|
68
72
|
with open(".pii.log", "w") as f:
|
69
|
-
|
73
|
+
# ! when using str(), it will give only a summary!
|
74
|
+
f.write(data.to_string(index=True))
|
70
75
|
|
71
|
-
return
|
76
|
+
return idx_all
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|