I am currently dealing with 2 csv files where 1 contains 5 columns - year, month, day, hour, and Revenue and I want to transcribe the Revenue column to another csv file, which also has the year, month, day, and hour columns. For example, I want to add a 'Revenue' column on the second csv file and place the revenue value for 2020/05/26 17:00 to the Revenue column on the first csv with the same date and hour.
Example of the first csv
year, month, day, hour, revenue
2020,3,5,8,100
2020,3,5,9,100
2020,3,5,11,100
Example of the second csv
year, month, day, hour, revenue
2020,3,5,8,
2020,3,5,9,
2020,3,5,10,
2020,3,5,11,
2020,3,5,12,
The resulting csv I want to get
year, month, day, hour, revenue
2020,3,5,8,100
2020,3,5,9,100
2020,3,5,10,
2020,3,5,11,100
2020,3,5,12,
I checked Pandas Merging 101 but it was talking about when 1 column matches while I'm checking if all 4 columns match. Also, this will be a large csv of around 10,000 rows.
Thank you in advance.