Tutorials
python
+1

Lowercase in Python

Learn to convert spreadsheet table column into lowercase using .str.lower() and .str.title().

Oh no! All of our movie titles in the movies DataFrame were inputted as uppercase by some guy at the popcorn stand!

Let's take this as an opportunity to practice using some of our methods for cleaning up case in Python.

Exercise

TRY IT YOURSELF: Access the exercise in our Python for Spreadsheet Users course here.

  • Use the right method to change the movie_title column to lower case.
# Change movie_title column to lower case
movies['movie_title'] = ____

# Look at the change
print(movies)

Video

To learn more about putting pandas dataframe together in Python, please see this video from our course Python for Spreadsheet Users.

This content is taken from DataCamp’s Python for Spreadsheet Users course by Chris Cardillo.