August 2021
Beginner to intermediate
112 pages
1h 29m
English
| Puzzle 5 | Let’s Get Schwifty |
| | import pandas as pd |
| | |
| | s = pd.Series(['Rick', 'Morty', 'Summer', 'Beth', 'Jerry']) |
| | print(s.lower()) |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
This code will raise an AttributeError.
The pandas.Series has a lot of methods:
| | In [1]: import pandas as pd |
| | In [2]: sum(1 for attr in dir(pd.Series) if attr[0] != '_') |
| | Out[2]: 207 |
But lower ...
Read now
Unlock full access