pandas.api.types.is_re_compilable()

pandas.api.types.is_re_compilable

pandas.api.types.is_re_compilable(obj) [source]

Check if the object can be compiled into a regex pattern instance.

Parameters:

obj : The object to check.

Returns:

is_regex_compilable : bool

Whether obj can be compiled as a regex pattern.

Examples

>>> 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.
http://pandas.pydata.org/pandas-docs/version/0.20.2/generated/pandas.api.types.is_re_compilable.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部