Question: Using numpy / pandas: Create series from the following two dictionaries: { ' A ' : ' a ' , ' B ' : '

Using numpy/pandas:
Create series from the following two dictionaries:
{'A': 'a','B': 'b','C': 'c','D': 'd','E':'e'}
{'A': 1,'B': 2,'C': 3,'D': 4,'E': 5}
From those series create a dataframe called Q15, such that the first series represents the lowercase column and the second series represents the numbers column.
Index Q15 to add an additional column to the dataframe called percent, that takes each number and divides it by the sum of all the numbers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!