Quiz: DataFrames and Math Methods on DataFrames

Quiz yourself on DataFrames and math methods on DataFrames.

1

What will be the output of following code?

 import pandas as pd
 L = [ 'A', 'B', 'C', 'D', 'E']
 df = pd.DataFrame(L)
 print(df[ -2 : ])
A)
0    A
1    B
2    C
B)
3    D
4    E
C)
4    D
3    C
2    B
D)
0    A
1    B
Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.