I am working with two csv files and imported as dataframe. Let's say df1 and df2 as in picture, df1 and df2 which are of different length. df1 has 50000 rows and df2 has 20000 rows.
df1
df2
I want to compare (iterate through rows) the 'time' of df2 with df1, find the difference in time and return the values of all column corresponding to similar row.
For example, 66 (of 'time' in df1) is nearest to 67 (of 'time' in df2), So I would like to return the contents to df1 (15'vel' and 25'yaw') to df2 and save as a new csv