Puzzle 5: Who's in Rick's Garage?
Let's exercise our minds by converting pandas series elements into lowercase.
We'll cover the following
Guess the output
Try to guess the output of the code below:
import pandas as pds = pd.Series(['Rick', 'Morty', 'Summer', 'Beth', 'Jerry'])print(s.lower())
Quiz
Q
What is the output of the code above?
A)
0 rick
1 morty
2 summer
3 beth
4 jerry
B)
rick morty summer beth jerry
C)
rick
morty
summer
beth
jerry
D)
AttributeError
Get hands-on with 1300+ tech skills courses.