pandas.Series.str.fullmatch
- Series.str.fullmatch(pat, case=True, flags=0, na=None)[source]
-
Determine if each string entirely matches a regular expression.
New in version 1.1.0.
- Parameters
-
- pat:str
-
Character sequence or regular expression.
- case:bool, default True
-
If True, case sensitive.
- flags:int, default 0 (no flags)
-
Regex module flags, e.g. re.IGNORECASE.
- na:scalar, optional
-
Fill value for missing values. The default depends on dtype of the array. For object-dtype,
numpy.nan
is used. ForStringDtype
,pandas.NA
is used.
- Returns
-
- Series/Index/array of boolean values
© 2008–2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.3.4/reference/api/pandas.Series.str.fullmatch.html