Advertisements
Advertisements
Question
Which statement is not correct to print the top 5 rows from series s?
Options
print(s.head())
print(s.head(5))
print(s.loc[:5])
print(s[:5])
MCQ
Solution
print(s.loc[:5])
shaalaa.com
A Series
Is there an error in this question or solution?