English

Which code is correct to show rows those empno are greater than 103? empno=[101,102,103,104,105,106,107]p=pd.Series(empno) -

Advertisements
Advertisements

Question

Which code is correct to show rows those empno are greater than 103?

empno=[101,102,103,104,105,106,107]
p=pd.Series(empno)

Options

  • print (p[p>103])

  • print ([p>103])

  • print ([empno>103])

  • print (empno[empno>103])

MCQ

Solution

print (p[p>103])

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

Englishहिंदीमराठी


      Forgot password?
Use app×