I want to filter rows from a data.frame based on a logical condition. Let\'s suppose that I have data frame like
data.frame
expr_value cell_type 1
This worked like magic for me.
celltype_hesc_bool = expr['cell_type'] == 'hesc'
expr_celltype_hesc = expr[celltype_hesc]
Check this blog post