diff --git a/.DS_Store b/.DS_Store index bcc6107..fb6a44d 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/app/expectations/custom_expectations.py b/app/expectations/custom_expectations.py index 65b163a..b53acfa 100644 --- a/app/expectations/custom_expectations.py +++ b/app/expectations/custom_expectations.py @@ -123,14 +123,11 @@ def expect_column_names_to_be_in_specific_pattern( include_meta=True, find_columns=False, ): - boolean_list = pd.Series(column_list.columns).apply( - lambda x: True if pattern.match(str(x)) else False + boolean_list = ( + pd.Series(column_list.columns) + .apply(lambda x: True if pattern.match(str(x)) else False) + .all() ) - # improper_column_list = [ - # column - # for column, boolean in zip(column_list.columns, boolean_list) - # if not boolean - # ] - # logging.info(boolean_list.all()) + boolean_list = pd.Series([boolean_list] * len(column_list)) - return boolean_list.all() + return boolean_list