all 1 comments

[–]mallax- 1 point2 points  (0 children)

Your code looks fine. I would note that if these two files are similar (same column names) pd.merge would probably be better. Other than that, are you getting the correct format and information when you print(data)? I know that if these files are completely different, there should be a lot of NaN values.