From a4121d7ce08784073b2ca9317e2d34dbebf01a7c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 06:02:42 +0000 Subject: [PATCH] Update latest dependencies --- premium_primitives/latlong_to_city.py | 6 +++--- premium_primitives/latlong_to_countrycode.py | 6 +++--- premium_primitives/latlong_to_county.py | 6 +++--- premium_primitives/latlong_to_state.py | 6 +++--- .../tests/requirement_files/latest_requirements.txt | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/premium_primitives/latlong_to_city.py b/premium_primitives/latlong_to_city.py index c60dc36..d5e3070 100644 --- a/premium_primitives/latlong_to_city.py +++ b/premium_primitives/latlong_to_city.py @@ -57,9 +57,9 @@ def latlong_to_city(column): latlong_df = pd.DataFrame({"latlongs": column}) latlong_df["is_null"] = latlong_df.apply( - lambda row: True - if any(map(lambda x: pd.isna(x), row["latlongs"])) - else False, + lambda row: ( + True if any(map(lambda x: pd.isna(x), row["latlongs"])) else False + ), axis=1, ) latlongs = latlong_df.apply( diff --git a/premium_primitives/latlong_to_countrycode.py b/premium_primitives/latlong_to_countrycode.py index de7e1de..79fb067 100644 --- a/premium_primitives/latlong_to_countrycode.py +++ b/premium_primitives/latlong_to_countrycode.py @@ -56,9 +56,9 @@ def latlong_to_countrycode(column): latlong_df = pd.DataFrame({"latlongs": column}) latlong_df["is_null"] = latlong_df.apply( - lambda row: True - if any(map(lambda x: pd.isna(x), row["latlongs"])) - else False, + lambda row: ( + True if any(map(lambda x: pd.isna(x), row["latlongs"])) else False + ), axis=1, ) latlongs = latlong_df.apply( diff --git a/premium_primitives/latlong_to_county.py b/premium_primitives/latlong_to_county.py index 92db29a..024ec67 100644 --- a/premium_primitives/latlong_to_county.py +++ b/premium_primitives/latlong_to_county.py @@ -56,9 +56,9 @@ def latlong_to_county(column): latlong_df = pd.DataFrame({"latlongs": column}) latlong_df["is_null"] = latlong_df.apply( - lambda row: True - if any(map(lambda x: pd.isna(x), row["latlongs"])) - else False, + lambda row: ( + True if any(map(lambda x: pd.isna(x), row["latlongs"])) else False + ), axis=1, ) latlongs = latlong_df.apply( diff --git a/premium_primitives/latlong_to_state.py b/premium_primitives/latlong_to_state.py index 416c980..a45822c 100644 --- a/premium_primitives/latlong_to_state.py +++ b/premium_primitives/latlong_to_state.py @@ -57,9 +57,9 @@ def latlong_to_state(column): latlong_df = pd.DataFrame({"latlongs": column}) latlong_df["is_null"] = latlong_df.apply( - lambda row: True - if any(map(lambda x: pd.isna(x), row["latlongs"])) - else False, + lambda row: ( + True if any(map(lambda x: pd.isna(x), row["latlongs"])) else False + ), axis=1, ) latlongs = latlong_df.apply( diff --git a/premium_primitives/tests/requirement_files/latest_requirements.txt b/premium_primitives/tests/requirement_files/latest_requirements.txt index 948af99..a149138 100644 --- a/premium_primitives/tests/requirement_files/latest_requirements.txt +++ b/premium_primitives/tests/requirement_files/latest_requirements.txt @@ -2,5 +2,5 @@ featuretools==1.28.0 numpy==1.24.4 pandas==1.5.3 phone-iso3166==0.4.1 -phonenumbers==8.13.26 +phonenumbers==8.13.28 zipcodes==1.2.0