KnowledgeBoat Logo
|

Informatics Practices

To display last five rows of a series object 'S', you may write :

  1. S.Head()
  2. S.Tail(5)
  3. S.Head(5)
  4. S.tail()

Python Pandas

1 Like

Answer

S.tail()

Reason — The syntax to display the last n rows of a Series object is <Series Object>.tail([n]). Therefore, according to this syntax, S.tail() will display last five rows of a Series object S.

Answered By

2 Likes


Related Questions