English

Write the output of the given command: import pandas as pd s=pd.Series([10,20,30,40,50],[1,2,3,4,5]) print(s[2]+s.iloc[2]) -

Advertisements
Advertisements

Question

Write the output of the given command:

import pandas as pd
s=pd.Series([10,20,30,40,50],[1,2,3,4,5])
print(s[2]+s.iloc[2])

Options

  • 10

  • 30

  • 50

  • 70

MCQ

Solution

50

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

Englishहिंदीमराठी


      Forgot password?
Use app×