Merge two data frames using the following condition
Create two data frames using the following two Dicts, Merge two data frames, and append the second data frame as a new column to the first data frame.
Car_Price = {'Company': ['Toyota', 'Honda', 'BMV', 'Audi'],
'Price': [23845, 17995, 135925 , 71400]}
car_Horsepower = {'Company': ['Toyota', 'Honda', 'BMV',
'Audi'], 'horsepower': [141, 80, 182 , 160]}
Expected Output:
Python Pandas merge two data frames and append new data frame as a new column
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer