upgini 1.2.7__py3-none-any.whl → 1.2.8__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 upgini might be problematic. Click here for more details.
- upgini/__about__.py +1 -1
- upgini/features_enricher.py +3 -1
- upgini/utils/ip_utils.py +15 -15
- {upgini-1.2.7.dist-info → upgini-1.2.8.dist-info}/METADATA +1 -1
- {upgini-1.2.7.dist-info → upgini-1.2.8.dist-info}/RECORD +7 -7
- {upgini-1.2.7.dist-info → upgini-1.2.8.dist-info}/WHEEL +0 -0
- {upgini-1.2.7.dist-info → upgini-1.2.8.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.8"
|
upgini/features_enricher.py
CHANGED
|
@@ -2095,7 +2095,9 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
2095
2095
|
features_not_to_pass = [
|
|
2096
2096
|
c
|
|
2097
2097
|
for c in df.columns
|
|
2098
|
-
if c not in search_keys.keys()
|
|
2098
|
+
if c not in search_keys.keys()
|
|
2099
|
+
and c not in features_for_transform
|
|
2100
|
+
and c not in [ENTITY_SYSTEM_RECORD_ID, SEARCH_KEY_UNNEST]
|
|
2099
2101
|
]
|
|
2100
2102
|
|
|
2101
2103
|
if add_fit_system_record_id:
|
upgini/utils/ip_utils.py
CHANGED
|
@@ -57,17 +57,17 @@ class IpSearchKeyConverter:
|
|
|
57
57
|
except ValueError:
|
|
58
58
|
pass
|
|
59
59
|
|
|
60
|
-
@staticmethod
|
|
61
|
-
def _is_ipv4(ip: Optional[_BaseAddress]):
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
@staticmethod
|
|
67
|
-
def _to_ipv4(ip: Optional[_BaseAddress]) -> Optional[IPv4Address]:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
60
|
+
# @staticmethod
|
|
61
|
+
# def _is_ipv4(ip: Optional[_BaseAddress]):
|
|
62
|
+
# return ip is not None and (
|
|
63
|
+
# isinstance(ip, IPv4Address) or (isinstance(ip, IPv6Address) and ip.ipv4_mapped is not None)
|
|
64
|
+
# )
|
|
65
|
+
|
|
66
|
+
# @staticmethod
|
|
67
|
+
# def _to_ipv4(ip: Optional[_BaseAddress]) -> Optional[IPv4Address]:
|
|
68
|
+
# if isinstance(ip, IPv4Address):
|
|
69
|
+
# return ip
|
|
70
|
+
# return None
|
|
71
71
|
|
|
72
72
|
@staticmethod
|
|
73
73
|
def _to_ipv6(ip: Optional[_BaseAddress]) -> Optional[IPv6Address]:
|
|
@@ -87,10 +87,10 @@ class IpSearchKeyConverter:
|
|
|
87
87
|
raise ValidationError(self.bundle.get("invalid_ip").format(self.ip_column))
|
|
88
88
|
|
|
89
89
|
# legacy support
|
|
90
|
-
ipv4 = self.ip_column + "_v4"
|
|
91
|
-
df[ipv4] = df[self.ip_column].apply(self._to_ipv4).apply(self._ip_to_int).astype("Int64")
|
|
92
|
-
self.search_keys[ipv4] = SearchKey.IP
|
|
93
|
-
self.columns_renaming[ipv4] = original_ip
|
|
90
|
+
# ipv4 = self.ip_column + "_v4"
|
|
91
|
+
# df[ipv4] = df[self.ip_column].apply(self._to_ipv4).apply(self._ip_to_int).astype("Int64")
|
|
92
|
+
# self.search_keys[ipv4] = SearchKey.IP
|
|
93
|
+
# self.columns_renaming[ipv4] = original_ip
|
|
94
94
|
|
|
95
95
|
ipv6 = self.ip_column + "_v6"
|
|
96
96
|
df[ipv6] = (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
upgini/__about__.py,sha256=
|
|
1
|
+
upgini/__about__.py,sha256=CfVXm0wwlKPW0khOcwhWw61TpgtZiLijCePsAIOK3aU,22
|
|
2
2
|
upgini/__init__.py,sha256=M64LwQTBa-5Jz24Zm2h8rWwlKQQ1J8nP7gGgIciS0WU,589
|
|
3
3
|
upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
|
|
4
4
|
upgini/dataset.py,sha256=olZ-OHSfBNoBSCo7R5t7uCLukI2nO7afpx_A-HCiJLk,31067
|
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
|
6
|
-
upgini/features_enricher.py,sha256=
|
|
6
|
+
upgini/features_enricher.py,sha256=J5-bn07iaJSXVN8COeu2RbDqZ4NTPd1L27HePaNh52o,188134
|
|
7
7
|
upgini/http.py,sha256=21asexflvavydzCOONJDGQBtQanCElrbnqLXakJ9Cu8,42880
|
|
8
8
|
upgini/lazy_import.py,sha256=74gQ8JuA48BGRLxAo7lNHNKY2D2emMxrUxKGdxVGhuY,1012
|
|
9
9
|
upgini/metadata.py,sha256=osmzdNESeh7yP3BZday6N9Q3eaIHfzhhRM1d6NSgcf0,11223
|
|
@@ -49,7 +49,7 @@ upgini/utils/email_utils.py,sha256=j0Ug1R_0AnCg1Y92zIZ4XMwvKo3G5_pcOlBN1OH_gZs,5
|
|
|
49
49
|
upgini/utils/fallback_progress_bar.py,sha256=PDaKb8dYpVZaWMroNcOHsTc3pSjgi9mOm0--cOFTwJ0,1074
|
|
50
50
|
upgini/utils/features_validator.py,sha256=PgKNt5dyqfErTvjtRNNUS9g7GFqHBtAtnsfA-V5UO1A,3307
|
|
51
51
|
upgini/utils/format.py,sha256=Yv5cvvSs2bOLUzzNu96Pu33VMDNbabio92QepUj41jU,243
|
|
52
|
-
upgini/utils/ip_utils.py,sha256=
|
|
52
|
+
upgini/utils/ip_utils.py,sha256=Q6vb7Sr5Khx3Sq3eENjW2qCXKej_S5jZbneH6zEOkzQ,5171
|
|
53
53
|
upgini/utils/phone_utils.py,sha256=IrbztLuOJBiePqqxllfABWfYlfAjYevPhXKipl95wUI,10432
|
|
54
54
|
upgini/utils/postal_code_utils.py,sha256=5M0sUqH2DAr33kARWCTXR-ACyzWbjDq_-0mmEml6ZcU,1716
|
|
55
55
|
upgini/utils/progress_bar.py,sha256=N-Sfdah2Hg8lXP_fV9EfUTXz_PyRt4lo9fAHoUDOoLc,1550
|
|
@@ -57,7 +57,7 @@ upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,4
|
|
|
57
57
|
upgini/utils/target_utils.py,sha256=BVtDmrmFMKerSUWaNOIEdzsYHIFiODdpnWbE50QDPDc,7864
|
|
58
58
|
upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
|
|
59
59
|
upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
|
|
60
|
-
upgini-1.2.
|
|
61
|
-
upgini-1.2.
|
|
62
|
-
upgini-1.2.
|
|
63
|
-
upgini-1.2.
|
|
60
|
+
upgini-1.2.8.dist-info/METADATA,sha256=ylfsesA9T7LuYFxcy-1HiIyMm5qgx8PmxOmkwk3K9sw,48607
|
|
61
|
+
upgini-1.2.8.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
62
|
+
upgini-1.2.8.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
63
|
+
upgini-1.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|