Question: Can I get help with this code? 1) Two dataframes, df1 and df2 , need to be merged using inner join on the column CIK

Can I get help with this code?

1) Two dataframes, df1 and df2, need to be merged using inner join on the column CIK. Write the code that does that. You may assume that pandas has been imported with alias pd.

2) p2is a data frame of 10 rows, f2 is a data frame of 8 rows. There is no missing data in either data frame.How many rows are there in the resulting data frame of the following merge operation:

pd.merge(p2,f2,left_on=['Symbol'],right_on=['Symbol'],how='left'

a) 8

b)10

c) 18

d) 2

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!