Puzzle 16: Y3K
Let's solve a pandas Timestamp puzzle.
We'll cover the following
Guess the output
Try to guess the output of the code below:
import pandas as pdy3k = pd.Timestamp(3000, 1, 1)print(f'They arrived to Earth on {y3k:%B %d}.')
Quiz
Q
What is the output of the code above?
A)
They arrived to Earth on January 01.
B)
They arrived to Earth on January 01 3000.
C)
OutOfBoundsDatetime Exception
D)
RuntimeError
Get hands-on with 1300+ tech skills courses.