What will be the output of the following code 

import pandas as pd
dict1 = {'Nagaland': 'Kohima', 'Manipur': 'Imphal', 'Meghalaya': 'Shillong'}
 
ser = pd.Series(dict1)
ser.index=[1,2,3]
print(ser[['Nagaland','Meghalaya']])

1
Nagaland       Kohima
Meghalaya    Shillong
dtype: object
2
1     Kohima
3     Shillong
dtype: object
3
1      Kohima
2      Imphal
3      Shillong
dtype: object
4
Error

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation