dragon-ml-toolbox 10.2.0__py3-none-any.whl → 10.2.1__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.

Potentially problematic release.


This version of dragon-ml-toolbox might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dragon-ml-toolbox
3
- Version: 10.2.0
3
+ Version: 10.2.1
4
4
  Summary: A collection of tools for data science and machine learning projects.
5
5
  Author-email: Karl Loza <luigiloza@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
- dragon_ml_toolbox-10.2.0.dist-info/licenses/LICENSE,sha256=2uUFNy7D0TLgHim1K5s3DIJ4q_KvxEXVilnU20cWliY,1066
2
- dragon_ml_toolbox-10.2.0.dist-info/licenses/LICENSE-THIRD-PARTY.md,sha256=lY4_rJPnLnMu7YBQaY-_iz1JRDcLdQzNCyeLAF1glJY,1837
3
- ml_tools/ETL_cleaning.py,sha256=-hxvnJYkGcBAR2eattOcgfGqPxM3TIORC6pCNvwDsf4,19113
1
+ dragon_ml_toolbox-10.2.1.dist-info/licenses/LICENSE,sha256=2uUFNy7D0TLgHim1K5s3DIJ4q_KvxEXVilnU20cWliY,1066
2
+ dragon_ml_toolbox-10.2.1.dist-info/licenses/LICENSE-THIRD-PARTY.md,sha256=lY4_rJPnLnMu7YBQaY-_iz1JRDcLdQzNCyeLAF1glJY,1837
3
+ ml_tools/ETL_cleaning.py,sha256=lSP5q6-ukGhJBPV8dlsqJvPXAzj4du_0J-SbtEd0Pjg,19292
4
4
  ml_tools/ETL_engineering.py,sha256=sgpIhlFIeId4eSJ-a33MnVuPNXs50msxFWa8-kw2hOI,36369
5
5
  ml_tools/GUI_tools.py,sha256=kEQWg-bog3pB5tI22gMGKWaCGHnz9TB2Lvvfhf5F2CI,45412
6
6
  ml_tools/MICE_imputation.py,sha256=kVSythWfxJFR4-2mtcYCWQaQ1Oz5yyx_SJu5gjnS7H8,11670
@@ -30,7 +30,7 @@ ml_tools/keys.py,sha256=HtPG8-MWh89C32A7eIlfuuA-DLwkxGkoDfwR2TGN9CQ,1074
30
30
  ml_tools/optimization_tools.py,sha256=P3I6lIpvZ8Xf2kX5FvvBKBmrK2pB6idBpkTzfUJxTeE,5073
31
31
  ml_tools/path_manager.py,sha256=TJgoqMAryc5F0dal8W_zvJgE1TpOzlskIyYJk614WW4,13809
32
32
  ml_tools/utilities.py,sha256=SVMaSDigh6SUoAeig2_sXLLIj5w5mUs5KuVWpHvFDec,19816
33
- dragon_ml_toolbox-10.2.0.dist-info/METADATA,sha256=nJ-15xA7A7FgzYDRSi6xjhBmn32Fz57TEn2Wqg5hZRg,6968
34
- dragon_ml_toolbox-10.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
- dragon_ml_toolbox-10.2.0.dist-info/top_level.txt,sha256=wm-oxax3ciyez6VoO4zsFd-gSok2VipYXnbg3TH9PtU,9
36
- dragon_ml_toolbox-10.2.0.dist-info/RECORD,,
33
+ dragon_ml_toolbox-10.2.1.dist-info/METADATA,sha256=zBNbArgUJkZxhs6hnjwgZX9rrjIKPKLRKxSKlPVqvLE,6968
34
+ dragon_ml_toolbox-10.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
+ dragon_ml_toolbox-10.2.1.dist-info/top_level.txt,sha256=wm-oxax3ciyez6VoO4zsFd-gSok2VipYXnbg3TH9PtU,9
36
+ dragon_ml_toolbox-10.2.1.dist-info/RECORD,,
ml_tools/ETL_cleaning.py CHANGED
@@ -126,27 +126,37 @@ def _cleaner_core(df_in: pl.DataFrame) -> pl.DataFrame:
126
126
  's': 's', 't': 't', 'u': 'u', 'v': 'v', 'w': 'w', 'x': 'x',
127
127
  'y': 'y', 'z': 'z',
128
128
  # Punctuation
129
- '》': '>', '《': '<', ':': ':', ',': ',', '。': '.', ';': ';', '【': '[', '】': ']',
129
+ '》': '>', '《': '<', ':': ':', '。': '.', ';': ';', '【': '[', '】': ']',
130
130
  '(': '(', ')': ')', '?': '?', '!': '!', '~': '~', '@': '@', '#': '#', '+': '+', '-': '-',
131
- '$': '$', '%': '%', '^': '^', '&': '&', '*': '*', '\': '\\', '|': '|', '、':',', '≈':'=',
131
+ '$': '$', '%': '%', '^': '^', '&': '&', '*': '*', '\': '-', '|': '|', '≈':'=',
132
+
133
+ # Commas (avoid commas in entries)
134
+ ',': ';',
135
+ ',': ';',
136
+ '、':';',
132
137
 
133
138
  # Others
134
139
  '©': '',
135
140
  '®': '',
136
141
  '™': '',
142
+ r'[°˚]': '',
137
143
 
138
- # Collapse repeating punctuation
139
- r'\.{2,}': '.', # Replace two or more dots with a single dot
140
- r'\?{2,}': '?', # Replace two or more question marks with a single question mark
141
- r'!{2,}': '!', # Replace two or more exclamation marks with a single one
144
+ # Replace special characters in entries
145
+ r'\\': '-',
146
+ '/': '-',
142
147
 
143
148
  # Typographical standardization
144
- # Unify various dashes and hyphens to a standard hyphen-minus
149
+ # Unify various dashes and hyphens to a standard hyphen
145
150
  r'[—–―]': '-',
146
151
  r'−': '-',
147
- # Unify various quote types to standard quotes
148
- r'[“”]': "'",
149
- r'[‘’′]': "'",
152
+ # remove various quote types
153
+ r'[“”"]': '',
154
+ r"[‘’′']": '',
155
+
156
+ # Collapse repeating punctuation
157
+ r'\.{2,}': '.', # Replace two or more dots with a single dot
158
+ r'\?{2,}': '?', # Replace two or more question marks with a single question mark
159
+ r'!{2,}': '!', # Replace two or more exclamation marks with a single one
150
160
 
151
161
  # 2. Internal Whitespace Consolidation
152
162
  # Collapse any sequence of whitespace chars (including non-breaking spaces) to a single space