October 2019
Beginner to intermediate
674 pages
16h 43m
English
String methods such as upper(), lower(), capitalize(), title(), and swapcase() help when we wish to convert all the string elements into an entire series. The upper and lower methods convert the entire string into uppercase or lowercase. The following command shows converting a series into uppercase:
sample_df["Movie"].str.upper()
The following is the output:

The following command shows converting a series into lowercase:
sample_df["Movie"].str.lower()
The following is the output:
The capitalize() method converts the ...
Read now
Unlock full access