Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

Pandas Series: str.capitalize() function

Series-str.capitalize() function

The str.capitalize() function is used to convert strings in the Series/Index to be capitalized.

The method is equivalent to str.capitalize().

Series.str.capitalize(self)
Pandas Series: str.capitalize() function

Returns: Series/Index of objects

Example:


Download the Pandas Series Notebooks from here.

Previous: Series-dt.total_seconds() function
Next: Series-str.casefold() function