Pandas 文本数据方法 find( ) rfind( ) index( ) rindex( )
来源:互联网 发布:大学室友不好知乎 编辑:程序博客网 时间:2024/06/07 23:11
Series.str.find(sub, start=0, end=None)????????,????
Series.str.rfind(sub, start=0, end=None)????????,????Series.str.index(sub, start=0, end=None)????????,????,???????
Series.str.rindex(sub, start=0, end=None)????????,????,???????
??:
sub : ???
start : ??,???
end : ??,???
??:
??Series/??Index
import pandas as pds = pd.Series(['A', 'B', 'C', 'Aaba', 'Baca', 'CABA', 'dog', 'cat'])print(s.str.find("a"))0 -11 -12 -13 14 15 -16 -17 1dtype: int64print(s.str.rfind("a"))0 -11 -12 -13 34 35 -16 -17 1dtype: int64
0 0
- Pandas 文本数据方法 find( ) rfind( ) index( ) rindex( )
- 字符串字串查找find, index, rfind, rindex
- python find() rfind() index() rindex() count() replace()...字符串的各种使用
- Pandas 文本数据方法 cat()
- Pandas 文本数据方法 get( )
- Pandas 文本数据方法 join( )
- Pandas 文本数据方法 get_dummies()
- Pandas 文本数据方法 contains()
- Pandas 文本数据方法 replace( )
- Pandas 文本数据方法 repeat( )
- Pandas 文本数据方法 wrap( )
- Pandas 文本数据方法 slice( )
- Pandas 文本数据方法 count( )
- Pandas 文本数据方法 findall( )
- Pandas 文本数据方法 partition( )
- Pandas 文本数据方法 is*()
- Pandas 文本数据方法 startswith( ) endwith( )
- Pandas 文本数据方法 extract( ) extractall( )
- bzoj1878 [SDOI2009]HH的项链
- bootstrap3.x栅格系统
- log4j2 文件个数超出上限没有删除解决方法 RollingFile DefaultRolloverStrategy
- Linux 802.11n CSI Tools常见问题,故障排除
- 排序动态图
- Pandas 文本数据方法 find( ) rfind( ) index( ) rindex( )
- 给QWidget添加菜单栏
- 整形大整数乘法
- 分离目录路径和文件名
- 安卓开发 第十篇 使用Checkstyle规范代码
- shell脚本中echo显示内容带颜色显示
- Activity的四种模式
- Kth Smallest Element in a Sorted Matrix (Leetcode)二分法
- 安卓四大组件-----广播机制