pandas.Series.str.count

Count occurrences of pattern in each string of the Series/Index.

This function is used to count the number of times a particular regex pattern is repeated in each of the string elements of the Series.

param pat
str

Valid regular expression.

param flags
int, default 0, meaning no flags

Flags for the re module. For a complete list, see here. **kwargs For compatibility with other string methods. Not used.

return

Series or Index Same type as the calling object containing the integer counts.

Warning

This feature is currently unsupported by Intel Scalable Dataframe Compiler