upgini 1.1.237a1__py3-none-any.whl → 1.1.237a2__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/utils/deduplicate_utils.py +2 -1
- {upgini-1.1.237a1.dist-info → upgini-1.1.237a2.dist-info}/METADATA +1 -1
- {upgini-1.1.237a1.dist-info → upgini-1.1.237a2.dist-info}/RECORD +6 -6
- {upgini-1.1.237a1.dist-info → upgini-1.1.237a2.dist-info}/LICENSE +0 -0
- {upgini-1.1.237a1.dist-info → upgini-1.1.237a2.dist-info}/WHEEL +0 -0
- {upgini-1.1.237a1.dist-info → upgini-1.1.237a2.dist-info}/top_level.txt +0 -0
|
@@ -49,10 +49,11 @@ def remove_fintech_duplicates(df: pd.DataFrame,
|
|
|
49
49
|
return df
|
|
50
50
|
|
|
51
51
|
def has_diff_target_within_60_days(rows):
|
|
52
|
-
rows = DateTimeSearchKeyConverter(date_col).convert(rows)
|
|
53
52
|
rows = rows.sort_values(by=date_col)
|
|
54
53
|
return len(rows[rows[TARGET].ne(rows[TARGET].shift()) & (rows[date_col].diff() < 60 * 24 * 60 * 60 * 1000)]) > 0
|
|
55
54
|
|
|
55
|
+
df = DateTimeSearchKeyConverter(date_col).convert(df)
|
|
56
|
+
grouped_by_personal_cols = df.groupby(personal_cols, group_keys=False)
|
|
56
57
|
rows_with_diff_target = grouped_by_personal_cols.filter(has_diff_target_within_60_days)
|
|
57
58
|
if len(rows_with_diff_target) > 0:
|
|
58
59
|
perc = len(rows_with_diff_target) * 100 / len(df)
|
|
@@ -40,7 +40,7 @@ upgini/utils/country_utils.py,sha256=9BXSXoGm3nVoOZE_bRENY-KMkwMUFvAF3Au0zxUNA1o
|
|
|
40
40
|
upgini/utils/custom_loss_utils.py,sha256=DBslpjWGPt7xTeypt78baR59012SYphbPsO_YLKdilo,3972
|
|
41
41
|
upgini/utils/cv_utils.py,sha256=6pSSL_Ft_8C6n6aInJeiyeSBD7McjsMxKZpHqSBV0uY,2491
|
|
42
42
|
upgini/utils/datetime_utils.py,sha256=awsLpnFjBNcrsCDyyiiJLicHgHiGCNAwi0UOwRKGD7s,8645
|
|
43
|
-
upgini/utils/deduplicate_utils.py,sha256=
|
|
43
|
+
upgini/utils/deduplicate_utils.py,sha256=o-XY0hbqikQTzwpX0nyl34j_oiBQTefCvRgLHkZRkTE,2795
|
|
44
44
|
upgini/utils/display_utils.py,sha256=tiq5sFOfMwkKCjQ7OGdyK_twe0Qdr9F3mzkW1QXSDog,10664
|
|
45
45
|
upgini/utils/email_utils.py,sha256=MhCLUAWqbp81xRyKizauNhVx6t_MFeJQRQ8pFM7EpFo,3480
|
|
46
46
|
upgini/utils/fallback_progress_bar.py,sha256=f-VzVbiO6oU9WoKzEgoegYotixdiKanGlvdQCOGC-NY,1128
|
|
@@ -54,8 +54,8 @@ upgini/utils/sklearn_ext.py,sha256=IMx2La70AXAggApVpT7sMEjWqVWon5AMZt4MARDsIMQ,4
|
|
|
54
54
|
upgini/utils/target_utils.py,sha256=cu52icjhDIPpEStHYMXrD2hIl9gzvfnxZr0Ra5osV0k,1616
|
|
55
55
|
upgini/utils/track_info.py,sha256=DVNVZmXUb4f25DSPEuUNEFx49hNEBfmuY9iSW5jkMnI,5708
|
|
56
56
|
upgini/utils/warning_counter.py,sha256=vnmdFo5-7GBkU2bK9h_uC0K0Y_wtfcYstxOdeRfacO0,228
|
|
57
|
-
upgini-1.1.
|
|
58
|
-
upgini-1.1.
|
|
59
|
-
upgini-1.1.
|
|
60
|
-
upgini-1.1.
|
|
61
|
-
upgini-1.1.
|
|
57
|
+
upgini-1.1.237a2.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
58
|
+
upgini-1.1.237a2.dist-info/METADATA,sha256=mBtZeL3wFKNUwe4HYcOPXpcb4fhMFGmIcX-b_torfuo,48346
|
|
59
|
+
upgini-1.1.237a2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
60
|
+
upgini-1.1.237a2.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
|
|
61
|
+
upgini-1.1.237a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|