Advertisements
Advertisements
Question
Give the output of:
s=pd.Series([10,20,30,40,50],index =[‘a’,‘b’,‘c’,0,1])
print(s.loc[1])
Options
10
20
40
50
MCQ
Solution
50
shaalaa.com
A Series
Is there an error in this question or solution?
Give the output of:
s=pd.Series([10,20,30,40,50],index =[‘a’,‘b’,‘c’,0,1])
print(s.loc[1])
10
20
40
50
50