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:
- In Pandas, the tail() function recovers the DataFrame's final few rows.
- If no parameter specifies the number of rows, the default value is 5.
shaalaa.com
Is there an error in this question or solution?