English

Which statement is not correct to print the top 5 rows from series s?

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
Advertisements

Solution

print(s.loc[:5])

shaalaa.com
A Series
  Is there an error in this question or solution?
Advertisements
Share
Notifications



      Forgot password?
Use app×