mkt.databases.utils.return_bool_at_index

mkt.databases.utils.return_bool_at_index(list_in: list, list_bool: list, bool_return: bool = True)[source]

Return list of elements from list_in where corresponding element in list_bool is bool_return.

Parameters:
  • list_in (list) – List of elements to filter.

  • list_bool (list) – List of boolean values to filter by.

  • bool_return (bool, optional) – Boolean value to filter by, by default True

Returns:

List of elements from list_in where corresponding element in list_bool is bool_return.

Return type:

list