xarray.core.accessor_str.StringAccessor.count¶
-
StringAccessor.
count
(pat, flags=0)¶ Count occurrences of pattern in each string of the array.
This function is used to count the number of times a particular regex pattern is repeated in each of the string elements of the
DatArray
.Parameters: Returns: counts
Return type: array of int