List of questions
Related questions
Question 29 - DSA-C02 discussion
Consider a data frame df with columns ['A', 'B', 'C', 'D'] and rows ['r1', 'r2', 'r3']. What does the ex-pression df[lambda x : x.index.str.endswith('3')] do?
A.
Returns the row name r3
B.
Results in Error
C.
Returns the third column
D.
Filters the row labelled r3
Your answer:
0 comments
Sorted by
Leave a comment first