lisa.datautils.df_filter#
- lisa.datautils.df_filter(df, filter_columns, exclude=False)[source]#
Filter the content of a dataframe.
- Parameters:
df (pandas.DataFrame) – DataFrame to filter
filter_columns (dict(str, object)) – Dict of {“column”: value) that rows has to match to be selected.
exclude (bool) – If
True
, the matching rows will be excluded rather than selected.