upgini 1.1.314a3511.dev2__py3-none-any.whl → 1.1.314a3511.dev3__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "1.1.314a3511.dev2"
1
+ __version__ = "1.1.314a3511.dev3"
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
- res_masked = pd.Series(left[mask] - right_masked.values).apply(lambda x: self._agg(self._diff(x)))
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.1.314a3511.dev2
3
+ Version: 1.1.314a3511.dev3
4
4
  Summary: Intelligent data search & enrichment for Machine Learning
5
5
  Project-URL: Bug Reports, https://github.com/upgini/upgini/issues
6
6
  Project-URL: Homepage, https://upgini.com/
@@ -1,4 +1,4 @@
1
- upgini/__about__.py,sha256=JqxbmnGkNyO6iD8XJEHFWQf_jE5J_9GMG7ORSRnAh5M,34
1
+ upgini/__about__.py,sha256=ldtzgMXLzxOsxJwxWWYyECSckqwHWJAC9yqeCSW5I1o,34
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,7 +16,7 @@ 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=FK642T-lsC7EugFqcNGQi00LdpcpCDfctCB2702srUY,8844
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
@@ -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.314a3511.dev2.dist-info/METADATA,sha256=MGYeotlLCIlJmdfjx6qBH8yq0mg2Gp1xlfeal-CcTS0,48232
61
- upgini-1.1.314a3511.dev2.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
62
- upgini-1.1.314a3511.dev2.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
63
- upgini-1.1.314a3511.dev2.dist-info/RECORD,,
60
+ upgini-1.1.314a3511.dev3.dist-info/METADATA,sha256=yrtH4JwLvlX0je_mSvpaoM7jFBiZ90S1pJUg1uPtJaI,48232
61
+ upgini-1.1.314a3511.dev3.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
62
+ upgini-1.1.314a3511.dev3.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
63
+ upgini-1.1.314a3511.dev3.dist-info/RECORD,,