Skip to main content

ser.str.upper()

ser.str.upper()

Converts strings in the Series to uppercase.

Returns:
Returns a Series with each element uppercased.
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.upper()
  • 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!"