upgini 1.1.314a3511.dev2__py3-none-any.whl → 1.1.315__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/autofe/date.py +9 -1
- upgini/autofe/unary.py +3 -0
- {upgini-1.1.314a3511.dev2.dist-info → upgini-1.1.315.dist-info}/METADATA +1 -1
- {upgini-1.1.314a3511.dev2.dist-info → upgini-1.1.315.dist-info}/RECORD +7 -7
- {upgini-1.1.314a3511.dev2.dist-info → upgini-1.1.315.dist-info}/WHEEL +0 -0
- {upgini-1.1.314a3511.dev2.dist-info → upgini-1.1.315.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.1.
|
|
1
|
+
__version__ = "1.1.315"
|
upgini/autofe/date.py
CHANGED
|
@@ -133,7 +133,15 @@ class DateListDiff(PandasOperand, DateDiffMixin):
|
|
|
133
133
|
right_mask = right.apply(lambda x: len(x) > 0)
|
|
134
134
|
mask = left.notna() & right.notna() & right_mask
|
|
135
135
|
right_masked = right[mask].apply(lambda x: pd.arrays.DatetimeArray(self._convert_to_date(x, self.right_unit)))
|
|
136
|
-
|
|
136
|
+
|
|
137
|
+
if len(right_masked) == 0:
|
|
138
|
+
diff = []
|
|
139
|
+
elif len(right_masked) < 2:
|
|
140
|
+
diff = [left[mask].iloc[0] - right_masked.iloc[0]]
|
|
141
|
+
else:
|
|
142
|
+
diff = left[mask] - right_masked.values
|
|
143
|
+
|
|
144
|
+
res_masked = pd.Series(diff, index=left[mask].index).apply(lambda x: self._agg(self._diff(x)))
|
|
137
145
|
res = res_masked.reindex(left.index.union(right.index))
|
|
138
146
|
if self.aggregation in _count_aggregations:
|
|
139
147
|
res[~right_mask] = 0.0
|
upgini/autofe/unary.py
CHANGED
|
@@ -121,6 +121,9 @@ class Norm(PandasOperand):
|
|
|
121
121
|
|
|
122
122
|
def calculate_unary(self, data: pd.Series) -> pd.Series:
|
|
123
123
|
data_dropna = data.dropna()
|
|
124
|
+
if data_dropna.empty:
|
|
125
|
+
return data
|
|
126
|
+
|
|
124
127
|
normalized_data = Normalizer().transform(data_dropna.to_frame().T).T
|
|
125
128
|
normalized_data = pd.Series(normalized_data[:, 0], index=data_dropna.index, name=data.name)
|
|
126
129
|
normalized_data = normalized_data.reindex(data.index)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
upgini/__about__.py,sha256=
|
|
1
|
+
upgini/__about__.py,sha256=w3dQScB9xaAWJs7E0uyqBXNPuzueUp4GS7kAsVAXYdM,24
|
|
2
2
|
upgini/__init__.py,sha256=Xs0YFVBu1KUdtZzbStGRPQtLt3YLzJnjx5nIUBlX8BE,415
|
|
3
3
|
upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
|
|
4
4
|
upgini/dataset.py,sha256=MOzBVsvzlHLxNfPWtMaXC_jIPeW7_gUvbSGeXnsPgNI,46158
|
|
@@ -16,11 +16,11 @@ upgini/ads_management/ads_manager.py,sha256=igVbN2jz80Umb2BUJixmJVj-zx8unoKpecVo
|
|
|
16
16
|
upgini/autofe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
upgini/autofe/all_operands.py,sha256=3LiH9iU-ArGmYpS8FHWH7yCFx40ILfvlSXJlKIa75BQ,2542
|
|
18
18
|
upgini/autofe/binary.py,sha256=VyDCv6lw3LlKCsAS9ghwwh6_1OYBbejSzwGGH1Vc1tI,6908
|
|
19
|
-
upgini/autofe/date.py,sha256=
|
|
19
|
+
upgini/autofe/date.py,sha256=AO3P8GtUHD6vPE_1Vrj3nsnXYBxiXe7vun6aLHReZgQ,9064
|
|
20
20
|
upgini/autofe/feature.py,sha256=gwGWY2UcX_0wHAvfEiu1rRU7GFZyzMWZIaPVcf6kD80,14223
|
|
21
21
|
upgini/autofe/groupby.py,sha256=4WjDzQxqpZxB79Ih4ihMMI5GDxaFqiH6ZelfV82ClT4,3091
|
|
22
22
|
upgini/autofe/operand.py,sha256=MKEsl3zxpWzRDpTkE0sNJxTu62U20sWOvEKhPjUWS6s,2915
|
|
23
|
-
upgini/autofe/unary.py,sha256=
|
|
23
|
+
upgini/autofe/unary.py,sha256=oIMf-IVy7L7GkzxMmQyExX0tOH9RhWeQh7cGxxMDiPk,3832
|
|
24
24
|
upgini/autofe/vector.py,sha256=dLxfAstJs-gw_OQ1xxoxcM6pVzORlV0HVzdzt7cLXVQ,606
|
|
25
25
|
upgini/data_source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
upgini/data_source/data_source_publisher.py,sha256=kTewGmdoxTVkZEqDdbhWbmIKIvb7W0w7ml3WOo-qc2g,21450
|
|
@@ -57,7 +57,7 @@ upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,4
|
|
|
57
57
|
upgini/utils/target_utils.py,sha256=Y96_PJ5cC-WsEbeqg20v9uqywDQobLoTb-xoP7S3o4E,7807
|
|
58
58
|
upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
|
|
59
59
|
upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
|
|
60
|
-
upgini-1.1.
|
|
61
|
-
upgini-1.1.
|
|
62
|
-
upgini-1.1.
|
|
63
|
-
upgini-1.1.
|
|
60
|
+
upgini-1.1.315.dist-info/METADATA,sha256=3bJRjL3ISzrjSvrBuHMQ6ewGb7BMt21fg71xKael-vE,48222
|
|
61
|
+
upgini-1.1.315.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
|
62
|
+
upgini-1.1.315.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
63
|
+
upgini-1.1.315.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|