Working with Text Columns
Text columns have a .str toolbox that works on every row at once: .str.lower(), .str.strip(), .str.contains('x'), .str.replace('a', 'b'), .str.split(), .str.len(). It is the quickest way to tidy messy names and codes.
Examplepython
Quick check
What does `.str.strip()` remove?
Your turn: write the code
Make the 'code' column upper case and print it.
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.