Write the output of the following : import pandas as pd S1 = pd.Series(['NewDelhi', 'WashingtonDC', 'London', 'Paris'], index=['India', 'USA', 'UK', 'France']) print(S1['India', 'UK'])

Question:
Write the output of the following :
import pandas as pd
S1 = pd.Series(['NewDelhi', 'WashingtonDC', 'London', 'Paris'], 
index=['India', 'USA', 'UK', 'France'])
print(S1['India', 'UK'])

1.India NewDelhi UK London dtype: object

2.India NewDelhi UK Washington dtype: object

3.Error

4.None of the above

Posted Date:-2021-12-13 05:58:12


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!