English

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

Question

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)

Code Writing
Fill in the Blanks
Advertisements

Solution

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

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×