Python Pandas Series.str.match()

Syntax: Series.str.match(pat, case=True, flags=0, na=nan)

Parameter :

  • pat: Regular expression pattern with capturing groups.
  • case: If True, case sensitive
  • flags: A re-module flag, for example, re.IGNORECASE.
  • na: default, NaN, fill value for missing values

Returns: Series/array of boolean values

Python | Pandas Series.str.match()

Series.str can be used to access the values of the series as strings and apply several methods to it. Pandas Series.str.match() function is used to determine if each string in the underlying data of the given series object matches a regular expression.

Similar Reads

Python Pandas Series.str.match()

Syntax: Series.str.match(pat, case=True, flags=0, na=nan) Parameter : pat: Regular expression pattern with capturing groups. case: If True, case sensitive flags: A re-module flag, for example, re.IGNORECASE. na: default, NaN, fill value for missing values Returns: Series/array of boolean values...

Series.str.match() in Pandas Examples

Below are the examples by which can perform string matching in Pandas Series in Python:...