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
Get step-by-step solutions from verified subject matter experts
