Pandas Series: str.lower() function
Series-str.lower() function
The str.lower() function is used to convert strings in the Series/Index to lowercase.
Syntax:
Series.str.lower(self)
Returns: Series/Index of objects
Example:
Python-Pandas Code:
Output:
0 long 1 CAPTAIN 2 this is my car 3 FoOtBaLl dtype: object
Python-Pandas Code:
Output:
0 long 1 captain 2 this is my car 3 football dtype: object
Previous: Series-str.len() function
Next: Series-str.lstrip() function