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?
