मराठी

Ravi wants to create a Pandas Series as shown below: January 31February 28March 31 Help him in completing the code below to achieve the desired output. Note: ser_data is a dictionary. - Informatics Practices

Advertisements
Advertisements

प्रश्न

Ravi wants to create a Pandas Series as shown below:

January 31
February 28
March 31

Help him in completing the code below to achieve the desired output.

Note: ser_data is a dictionary.

import ______ as pd
ser_data = ______
s = pd.______(ser_data)
print(s)

कोड लेखन
रिकाम्या जागा भरा
Advertisements

उत्तर

import pandas as pd
ser_data = {'January': 31, 'February': 28, 'March': 31}
s = pd.series(ser_data)
print(s)

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2025-2026 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×