upgini 1.1.279a1__py3-none-any.whl → 1.1.279a2__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/datetime_utils.py +3 -3
- {upgini-1.1.279a1.dist-info → upgini-1.1.279a2.dist-info}/METADATA +1 -1
- {upgini-1.1.279a1.dist-info → upgini-1.1.279a2.dist-info}/RECORD +6 -6
- {upgini-1.1.279a1.dist-info → upgini-1.1.279a2.dist-info}/LICENSE +0 -0
- {upgini-1.1.279a1.dist-info → upgini-1.1.279a2.dist-info}/WHEEL +0 -0
- {upgini-1.1.279a1.dist-info → upgini-1.1.279a2.dist-info}/top_level.txt +0 -0
upgini/utils/datetime_utils.py
CHANGED
|
@@ -217,8 +217,8 @@ def is_blocked_time_series(df: pd.DataFrame, date_col: str, search_keys: List[st
|
|
|
217
217
|
def is_multiple_rows(group: pd.DataFrame) -> bool:
|
|
218
218
|
return group.shape[0] > 1
|
|
219
219
|
|
|
220
|
-
grouped = df.groupby(date_col)
|
|
221
|
-
dates_with_multiple_rows =
|
|
220
|
+
grouped = df.groupby(date_col)[[c for c in df.columns if c != date_col]]
|
|
221
|
+
dates_with_multiple_rows = grouped.apply(is_multiple_rows).sum()
|
|
222
222
|
|
|
223
223
|
# share of dates with more than one record is more than 99%
|
|
224
224
|
if dates_with_multiple_rows / nunique_dates < 0.99:
|
|
@@ -227,7 +227,7 @@ def is_blocked_time_series(df: pd.DataFrame, date_col: str, search_keys: List[st
|
|
|
227
227
|
if df.shape[1] <= 3:
|
|
228
228
|
return True
|
|
229
229
|
|
|
230
|
-
grouped.apply(check_differences
|
|
230
|
+
grouped.apply(check_differences)
|
|
231
231
|
return len(accumulated_changing_columns) <= 2
|
|
232
232
|
|
|
233
233
|
|
|
@@ -41,7 +41,7 @@ upgini/utils/blocked_time_series.py,sha256=dMz5ewk3PsoeOrc3lDzInCVPS9u_2XQkV0W6P
|
|
|
41
41
|
upgini/utils/country_utils.py,sha256=pV8TBURthYqwSOfH1lxfYc2blm3OvfLFCMvRv8rKTp4,6511
|
|
42
42
|
upgini/utils/custom_loss_utils.py,sha256=DBslpjWGPt7xTeypt78baR59012SYphbPsO_YLKdilo,3972
|
|
43
43
|
upgini/utils/cv_utils.py,sha256=Tn01RJvpZGZh0PUQUimlBkV-AXwe7s6yjCNFtw352Uc,3525
|
|
44
|
-
upgini/utils/datetime_utils.py,sha256=
|
|
44
|
+
upgini/utils/datetime_utils.py,sha256=ED_6V44jms64HzctHWu5PF6d_hA_D9mqatkfhG8gnrs,10432
|
|
45
45
|
upgini/utils/deduplicate_utils.py,sha256=6AbARehUCghJZ4PppFtrej2s3gFRruh41MEm6mzakHs,8607
|
|
46
46
|
upgini/utils/display_utils.py,sha256=LKoSwjrE0xgS5_cqVhc2og2CQ1UCZ1nTI2VKboIhoQA,10858
|
|
47
47
|
upgini/utils/email_utils.py,sha256=R9bVOfbS-oVkA8PdwZfQBxm7B4mQlRtkwqx2cf6zPCY,3520
|
|
@@ -56,8 +56,8 @@ upgini/utils/sklearn_ext.py,sha256=e1aMNXk1zUt7uFnl0FcUF0zOnaXSE7z5xBHmJPknUVs,4
|
|
|
56
56
|
upgini/utils/target_utils.py,sha256=Y96_PJ5cC-WsEbeqg20v9uqywDQobLoTb-xoP7S3o4E,7807
|
|
57
57
|
upgini/utils/track_info.py,sha256=p8gmuHhLamZF5JG7K9DeK-PcytQhlFCR29lyRr-wq_U,5665
|
|
58
58
|
upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
|
|
59
|
-
upgini-1.1.
|
|
60
|
-
upgini-1.1.
|
|
61
|
-
upgini-1.1.
|
|
62
|
-
upgini-1.1.
|
|
63
|
-
upgini-1.1.
|
|
59
|
+
upgini-1.1.279a2.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
60
|
+
upgini-1.1.279a2.dist-info/METADATA,sha256=l1dXPjXI2FAyLaDlbfed-KkICdN3BhTeUPZGZBUZgmQ,48158
|
|
61
|
+
upgini-1.1.279a2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
62
|
+
upgini-1.1.279a2.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
|
|
63
|
+
upgini-1.1.279a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|