Q. Which method is used to get the last n rows of a DataFrame?

  • (A) head()
  • (B) tail()
  • (C) last()
  • (D) sample()
πŸ’¬ Discuss
βœ… Correct Answer: (B) tail()
Explanation: The tail(n) method returns the last n rows of a DataFrame.
Explanation by: Sikhar Chaudhary
The tail(n) method returns the last n rows of a DataFrame.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
82%
Success Rate