Primary
Series.str() ⚬|Documentation|1st|20251021202035-00-⌔
pandas.Series.str — pandas 2.3.3 documentation#pandas.Series.str
Series.str()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 from R’s stringr package.
Parameters:
data: Series or IndexThe content of the Series or Index.
See also:
Series.strVectorized string functions for Series.
Index.strVectorized string functions for Index.
Examples:
>>> s = pd.Series(["A_Str_Series"]) >>> s 0 A_Str_Series dtype: str>>> s.str.split("_") 0 [A, Str, Series] dtype: object>>> s.str.replace("_", "") 0 AStrSeries dtype: strPrinted 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •