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?
Easy peasy! The lambda function is looking for rows where the index ends with '3', so the answer has to be D. Though I do wonder if the data frame has a sense of humor and will throw an error just to mess with us.
Haha, the lambda function is like a secret code that only data scientists can crack! I'm going to go with D, because filtering rows seems like the most logical choice here.
Hmm, I'm not so sure about this one. It could be C, since the lambda function might be selecting the third column. But I'm leaning towards D, just to be safe.
This is a tricky one! I think the correct answer is D, since the lambda function checks if the row index ends with '3', which would filter out just the row labeled 'r3'.
Estrella
8 days agoAvery
9 days agoGertude
13 days agoLeonie
8 days agoMatthew
8 days agoPauline
25 days agoMargart
7 days agoParis
9 days agoVirgie
25 days agoCarman
1 months agoVirgie
1 months ago