Getting Started
User Guide
Help & reference
DataArray.str.
count
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 DataArray.
DataArray
pat (str) – Valid regular expression.
str
flags (int, default: 0) – Flags for the re module. Use 0 for no flags. For a complete list, see here.
int
0
counts
array of int