Question 161 · 219 in bank
Which of the following code blocks returns the first 3 rows of DataFrame storesDF?
Show answer
Answer: C
Explanation
odd question indeed. head() and take() methods perform a similar operation of retrieving rows from the beginning of the DataFrame. However, head() may be slightly slower than take() due to additional checks for boundary conditions. I can't see the difference in terms of retrieving 1st three rows.
Source: Adapted from community discussion — azure_bimonster