What will be the output of the following code 

import pandas as pd
dict1 = {'Assam': 'Dispur', 'Manipur': 'Imphal', 'Meghalaya': 'Shillong'}
 
ser = pd.Series(dict1)
print(ser[[0,2]])

1
Assam                     Dispur
Madhya Pradesh     Bhopal
Meghalaya               Shillong
dtype: object
2
Assam                     Dispur
Meghalaya               Shillong
dtype: object
3
Madhya Pradesh     Bhopal
Meghalaya               Shillong
dtype: object
4
Assam                     Dispur
Madhya Pradesh     Bhopal
dtype: object

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation