August 2021
Beginner to intermediate
112 pages
1h 29m
English
| Puzzle 6 | Full of It |
| | import pandas as pd |
| | |
| | s = pd.Series([], dtype='float64') |
| | print('full' if s.all() else 'empty') |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
This code will print: full
The pandas.Series.all documentation says the following:
Return whether all elements are True, potentially over an axis.
Returns True unless there is at least one element within a series or along ...
Read now
Unlock full access