Informatics Practices

In a Pandas DataFrame, if the tail() function is used without specifying the optional argument indicating the number of rows to display, what is the default number of rows displayed, considering the DataFrame has 10 entries ?

  1. 0
  2. 1
  3. 4
  4. 5

Python Pandas

2 Likes

Answer

5

Reason — In a Pandas DataFrame, if the tail() function is used without specifying an optional argument, it displays the last 5 rows by default.

Answered By

2 Likes


Related Questions