Puzzle 1: Rectified
Let's exercise our minds by solving a pandas series puzzle.
We'll cover the following...
We'll cover the following...
Guess the output
Try to guess the output of the code below:
Press + to interact
import pandas as pddef relu(n):if n < 0:return 0return narr = pd.Series([-1, 0, 1])print(relu(arr))
Quiz
1.
What is the output of code above?
A.
0 0 1
B.
-1 0 1
C.
ValueError
D.
TypeError
1 / 1