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.loc[2]*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.loc[2]*2)

Options

  • 10

  • 80

  • 60

  • 40

MCQ

Solution

40

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

Englishहिंदीमराठी


      Forgot password?
Use app×