pandas.api.types.is_re_compilable(obj) [source]
Check if the object can be compiled into a regex pattern instance.
| Parameters: |
|
|---|---|
| Returns: |
|
>>> is_re_compilable(".*")
True
>>> is_re_compilable(1)
False
© 2008–2012, 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/0.25.0/reference/api/pandas.api.types.is_re_compilable.html