pandas.api.types.is_re# pandas.api.types.is_re(obj)[source]# Check if the object is a regex pattern instance. Parameters: objThe object to check Returns: boolWhether obj is a regex pattern. Examples >>> from pandas.api.types import is_re >>> import re >>> is_re(re.compile(".*")) True >>> is_re("foo") False