CBSE Class 12 Informatics Practices
Question 53 of 167
Python Pandas — I — Question 18
Back to all questionsprint(Sequences.head(4))
Reason — The syntax to display the first n rows from a Series object is <Series object>.head([n]). Therefore, according to this syntax, the command to display the first 4 rows of Sequences is print(Sequences.head(4)).