-1

I have two files one with 50,000 rows and 12 features in it. Another csv file which has 670 approx rows and 2 features. I would like to merge the columns from two different files into a single file.

Please help me with this, how to solve this problem. Make sure to give your answer in Python only.

RangerRanger
  • 2,336
  • 2
  • 14
  • 35
Mohit Sharma
  • 445
  • 3
  • 11

1 Answers1

0

What do you exactly mean by merging, as it seems the number of lines / features isn't the same?

I would load the smallest file in python, and then read line by line the first one to inject/update content.

You can have a look here if you want to know hos to manipulate a csv file in Python.

ThisIsMyName
  • 817
  • 6
  • 13