हिंदी

Write a program to create a series of objects using a dictionary that stores the number of students in each house of class 12D of your school. Note: Assume four house names are Beas, Chenab, Ravi

Advertisements
Advertisements

प्रश्न

Write a program to create a series of objects using a dictionary that stores the number of students in each house of class 12D of your school.

Note: Assume four house names are Beas, Chenab, Ravi, and Satluj having 18, 2, 20, and 18 students respectively and pandas library has been imported as pd.

एक पंक्ति में उत्तर
Advertisements

उत्तर

St = {‘Beas’ :18, ‘Chenab’ :20 , ‘ Ravi’ :20, ‘ Satluj’ :18}

S1 = pd.Series(St)

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

Englishहिंदीमराठी


      Forgot password?
Use app×