pandas.api.types.is_re(obj) [source]
Check if the object is a regex pattern instance.
| Parameters: |
|
|---|---|
| Returns: |
is_regex : bool Whether |
>>> is_re(re.compile(".*"))
True
>>> is_re("foo")
False
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.api.types.is_re.html