RoiObj.where_is(patterns, df=None, union=True, columns=None, exact=False, case_sensitive=False)[source][source]

Find a list of string patterns in a DataFrame.

patterns : list

List of string patterns to search.

df : pd.DataFrame | None

The DataFrame to use. If None, the DataFrame of the ROI are going to be used by default.

union : bool | True

Take either the union of matching patterns (True) or the intersection (False).

columns : list | None

List of specific column names to search in. If None, this method search through the entire DataFrame.

exact : bool | False

Specify if the pattern to search have to be exact matching (True) or if the pattern is only a part of the result.

case_sensitive : bool | False

Specify if the search have to be case sensitive.

idx : list

List of index that match with the list of patterns.