Pandas 文本数据方法 slice( )

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

转载于:https://my.oschina.net/u/3473376/blog/895298

你可能感兴趣的:(python)