Pandas 文本数据方法 contains()
2017-03-22 18:48
246 查看
Series.str.contains(pat, case=True, flags=0, na=nan, regex=True)是否包含查找的字符串
参数:
pat : 字符串/正则表达式
case : 布尔值, 默认为True.如果为True则匹配敏感
flags : 整型,默认为0(没有flags)
na : 默认为NaN,替换缺失值.
regex : 布尔值, 默认为True.如果为真则使用re.research,否则使用Python
返回值:
布尔值的序列(series)或数组(array)
参数:
pat : 字符串/正则表达式
case : 布尔值, 默认为True.如果为True则匹配敏感
flags : 整型,默认为0(没有flags)
na : 默认为NaN,替换缺失值.
regex : 布尔值, 默认为True.如果为真则使用re.research,否则使用Python
返回值:
布尔值的序列(series)或数组(array)
相关文章推荐
- Pandas 文本数据方法 contains()
- Pandas 文本数据方法 strip( ) lstrip( ) rstrip( )
- Pandas 文本数据方法 slice( )
- Pandas 文本数据方法 extract( ) extractall( )
- Pandas 文本数据方法 capitalize( ) lower( ) upper( )
- Pandas 文本数据方法 split()rsplit()
- Pandas 文本数据方法 replace( )
- Pandas 文本数据方法 split()rsplit()
- Pandas 文本数据方法 cat()
- Pandas 文本数据方法 count( )
- Pandas 文本数据方法 get( )
- Pandas 文本数据方法 pad( ) center( ) ljust() rjust() zfill()
- Pandas 文本数据方法 find( ) rfind( ) index( ) rindex( )
- Pandas 文本数据方法 startswith( ) endwith( )
- Pandas 文本数据方法 slice( )
- Pandas 文本数据方法 partition( )
- Pandas 文本数据方法 wrap( )
- Pandas 文本数据方法 join( )
- Pandas 文本数据方法 count( )
- Pandas 文本数据方法 startswith( ) endwith( )