pandas subset datafaem by boolean column 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