Skip to content

Commit 6c42956

Browse files
committed
Hotfix search keys check
1 parent 53ff23c commit 6c42956

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def send_log(msg: str):
3939
send_log("Start setup PyLib")
4040
setup(
4141
name="upgini",
42-
version="1.1.17",
42+
version="1.1.18",
4343
description="Low-code feature search and enrichment library for machine learning",
4444
long_description=(here / "README.md").read_text(encoding="utf-8"),
4545
long_description_content_type="text/markdown",

src/upgini/features_enricher.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,11 @@ def __prepare_search_keys(self, x: pd.DataFrame):
10311031
self.search_keys = valid_search_keys
10321032

10331033
using_keys = self.__using_search_keys()
1034-
if len(using_keys.values()) == 1 and next(iter(using_keys.values())) == SearchKey.DATE:
1034+
if (
1035+
len(using_keys.values()) == 1
1036+
and self.country_code is None
1037+
and next(iter(using_keys.values())) == SearchKey.DATE
1038+
):
10351039
msg = (
10361040
"WARNING: You have started the search with the Date key only. "
10371041
"Try to add the Country and/or Postal Code keys to your dataset so that the search engine gets access "

0 commit comments

Comments
 (0)