Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def _sort_expectations_by_column(self, expectations):
- expectations_by_column = {}
- expectations_dictionary = expectations.get("expectations")
- column_names = list(self._get_table_columns(expectations).keys())
- for column in column_names:
- expectations_by_column[column] = list(filter(
- lambda x: x.get("kwargs").get("column")==column,
- expectations_dictionary))
- return expectations_by_column
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement