August 2021
Beginner to intermediate
112 pages
1h 29m
English
| Puzzle 8 | Once Upon a Time |
| | import pandas as pd |
| | |
| | s1 = pd.to_datetime([ |
| | '2020-01-01T00:00:00+00:00', |
| | '2020-02-02T00:00:00+00:00', |
| | '2020-03-03T00:00:00+00:00', |
| | ]) |
| | s2 = pd.Series([ |
| | pd.Timestamp(2020, 1, 1), |
| | pd.Timestamp(2020, 2, 2), |
| | pd.Timestamp(2020, 3, 3), |
| | ]) |
| | print(s1 == s2) |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
This code will raise a TypeError.
In Pandas (and ...
Read now
Unlock full access