CBSE Class 12 Informatics Practices
Question 45 of 167
Python Pandas — I — Question 10
Back to all questionsS[:3]
Reason — The syntax to extract slices from Series object is <Series Object>[start:end:step]. Therefore, according to this syntax, the correct slice notation to display the first three elements of a Series object S is S[:3].