हिंदी

Complete the given Python code to get the required output (ignore the dtype attribute) as Output: Tamil Nadu ChennaiUttar Pradesh Luncknowmanipur Imphal Code: import _______ as pd data - Informatics Practices

Advertisements
Advertisements

प्रश्न

Complete the given Python code to get the required output (ignore the dtype attribute) as

Output:

Tamil Nadu     Chennai
Uttar Pradesh   Lucknow
manipur         Imphal

Code:

import _______ as pd
data = ['Chennai','_______','Imphal']
indx = ['Tamil Nadu','Uttar Pradesh','Manipur']
s = pd.Series(_______, indx)
print(_______)
कोड लेखन

उत्तर

import pandas as pd
data = ['Chennai', 'Lucknow', 'Imphal']
indx = ['Tamil Nadu','Uttar Pradesh','Manipur']
s = pd.Series(data, indx)
print(s

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×