- API reference
- Series
- pandas.Serie...
pandas.Series.str.fullmatch#
- Series.str.fullmatch(pat,case=True,flags=0,na=<no_default>)[source]#
Determine if each string entirely matches a regular expression.
- Parameters:
- patstr
Character sequence or regular expression.
- casebool, default True
If True, case sensitive.
- flagsint, default 0 (no flags)
Regex module flags, e.g. re.IGNORECASE.
- nascalar, optional
Fill value for missing values. The default depends on dtype of thearray. For object-dtype,
numpy.nanis used. For the nullableStringDtype,pandas.NAis used. For the"str"dtype,Falseis used.
- Returns:
- Series/Index/array of boolean values
See also
Examples
>>>ser=pd.Series(["cat","duck","dove"])>>>ser.str.fullmatch(r'd.+')0 False1 True2 Truedtype: bool
On this page