系列和索引的矢量化字符串函数。
除非通过特定方法另行处理,否则NAS将保持为NA。仿照Python的字符串方法,灵感来自R的Stringr包。
示例
>>> s = pd.Series(["A_Str_Series"]) >>> s 0 A_Str_Series dtype: object
>>> s.str.split("_") 0 [A, Str, Series] dtype: object
>>> s.str.replace("_", "") 0 AStrSeries dtype: object
上一页
pandas.Index.sortlevel
下一页
pandas.Index.symmetric_difference