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

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.


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


This feature is currently unsupported by Intel Scalable Dataframe Compiler