Pandas 文本数据方法 slice( )
2017-03-22 19:46
274 查看
Series.str.slice(start=None, stop=None, step=None)按下标截取字符串
参数:
start : 整型或缺省
stop : 整型或缺省
step : 整型或缺省
Returns:
序列Series/索引Index
Series.str.slice_replace(start=None, stop=None, repl=None)按下标替换
参数:
start : 整型或缺省
stop : 整型或缺省
repl : 字符串或缺省,要替换的字符串
返回:
序列Series/索引Index
参数:
start : 整型或缺省
stop : 整型或缺省
step : 整型或缺省
Returns:
序列Series/索引Index
Series.str.slice_replace(start=None, stop=None, repl=None)按下标替换
参数:
start : 整型或缺省
stop : 整型或缺省
repl : 字符串或缺省,要替换的字符串
返回:
序列Series/索引Index
相关文章推荐
- Pandas 文本数据方法 slice( )
- Pandas 文本数据方法 strip( ) lstrip( ) rstrip( )
- Pandas 文本数据方法 wrap( )
- Pandas 文本数据方法 extract( ) extractall( )
- Pandas 文本数据方法 capitalize( ) lower( ) upper( )
- Pandas 文本数据方法 split()rsplit()
- Pandas 文本数据方法 contains()
- Pandas 文本数据方法 split()rsplit()
- Pandas 文本数据方法 cat()
- Pandas 文本数据方法 count( )
- Pandas 文本数据方法 get( )
- Pandas 文本数据方法 repeat( )
- Pandas 文本数据方法 find( ) rfind( ) index( ) rindex( )
- Pandas 文本数据方法 startswith( ) endwith( )
- Pandas 文本数据方法 partition( )
- Pandas 文本数据方法 pad( ) center( ) ljust() rjust() zfill()
- Pandas 文本数据方法 join( )
- Pandas 文本数据方法 count( )
- Pandas 文本数据方法 contains()
- Pandas 文本数据方法 startswith( ) endwith( )