https://stackoverflow.com/questions/11418192/pandas-complex-filter-on-rows-of-dataframe
mask = df.apply(lambda row: row["col"].val < 100, axis=1) df[mask]
https://stackoverflow.com/questions/11418192/pandas-complex-filter-on-rows-of-dataframe
mask = df.apply(lambda row: row["col"].val < 100, axis=1) df[mask]