Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.Series.str#

Series.str()[source]#

Vectorized string functions for Series and Index.

NAs stay NA unless handled otherwise by a particular method.Patterned after Python’s string methods, with some inspiration fromR’s stringr package.

Examples

>>>s=pd.Series(["A_Str_Series"])>>>s0    A_Str_Seriesdtype: object
>>>s.str.split("_")0    [A, Str, Series]dtype: object
>>>s.str.replace("_","")0    AStrSeriesdtype: object

[8]ページ先頭

©2009-2025 Movatter.jp