pandas.Series.str.capitalize

pandas 3.1.1 · Series and accessors · method

Uppercase the initial character and lowercase the remaining text of each string.

Call syntax

Series.str.capitalize()

Run the example

Edit the example and select Run Python to see the result.

Parameters

This call takes no arguments.

Returns

Series or Index of objects