Series.str gives you element-wise string operations on a
Series, mirroring pandas StringMethods.
Every method propagates null / NaN unchanged.
Edit any code block below and press ▶ Run
(or Ctrl+Enter) to execute it live in your browser.
Convert strings to lower, upper, title, or capitalized form.
Get string length, extract substrings with slice(), or access individual characters with get().
Remove whitespace (or specific characters) with strip(). Pad strings with ljust(), rjust(), center(), or zfill().
Test membership with contains(), startswith(), endswith(). Use match() or fullmatch() for regex matching.
Count pattern occurrences, find positions, and replace substrings.
Extract the first regex capture group with extract(). Returns null when there is no match.
Split strings with split() and reassemble with join(). Use cat() to concatenate element-wise.
Test character classes with isalpha(), isdigit(), isalnum(), islower(), isupper(), istitle(), isspace().
All methods pass null / NaN through unchanged, just like pandas.