pandas boolean mask for list of values code example
Example: python subset pandas dataframe based on list of booleans
# Basic syntax:
dataframe_subset = dataframe[list_of_booleans]
# Where the list_of_booleans is equal to the length of the dataframe