English

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, - Informatics Practices

Advertisements
Advertisements

Question

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? 

Options

  • 0

  • 1

  • 4

  • 5

MCQ

Solution

5

Explanation:

  1. In Pandas, the tail() function recovers the DataFrame's final few rows.
  2. If no parameter specifies the number of rows, the default value is 5.
shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×