xarray.DataArray.str.contains¶
-
DataArray.str.
contains
(pat, case=True, flags=0, regex=True)¶ Test if pattern or regex is contained within each string of the array.
Return boolean array based on whether a given pattern or regex is contained within a string of the array.
- Parameters
- Returns
contains – An array of boolean values indicating whether the given pattern is contained within the string of each element of the array.
- Return type