ser.str.title()
ser.str.title()
Converts strings in the Series to title case. Each beginning letter of a continuous string of letters will be uppercased.
- Returns:
- Returns a Series with each element in title case.
- Return Type:
- Series
comment_ser = pets.get('Owner_Comment')
comment_ser
- 0" There are no bad dogs, only bad owners."
- 1"My best birthday present ever!!!"
- 2"****All you need is love and a cat.****"
- 3"Love is a wet nose and a wagging tail."
- 4"Be the person your dog thinks you are."
- 5"No, thank you!"
- 6"No, thank you!"
- 7"No, thank you!"
comment_ser.str.title()
- 0" There Are No Bad Dogs, Only Bad Owners."
- 1"My Best Birthday Present Ever!!!"
- 2"****All You Need Is Love And A Cat.****"
- 3"Love Is A Wet Nose And A Wagging Tail."
- 4"Be The Person Your Dog Thinks You Are."
- 5"No, Thank You!"
- 6"No, Thank You!"
- 7"No, Thank You!"