Adding column from one CSV file to another CSV file
<p>I have 2 CSV files that I need to merge together based on a key i created ( the purpose was to mask ID's then join the ids on the key later ) I can do this in SSIS, but im have an error runing the batch script from my python script (something to do with SSIS not running packages outside SSIS. Working with software team to fix ) but in the mean time I would like to just have it working for a demo.</p>

<p>Is this possible in Python?</p>

<pre><code>File 1:
input_id multiple columns ---&gt;
1
2
3
File 2:
input_id  ID
1         1234
2         1235
3         1236

output:
input_id multiple columns ---&gt; ID
1                              1234
2                              1235
3                              1236 
</code></pre>

<pre><code>a = pd.read_csv("import.csv")

b = pd.read_csv("entity_ids.csv")

merge = a.merge(b, how='left', on='input_id')

merge.to_csv("test2.csv", index = False)
</code></pre>

python csv ssis