INPUT TABLEs OUTPUT TABLE(Table2)
Table1.csv | Table2.csv Table2.csv
Key | Key Key Flag
a | a a 1
b | b b 1
c | c c 1
f | d d 0
| e e 0
| f f 1
Table1.csv & Table2.csv has a common Key column. If Table2.csv and Table1.csv has the same key,then i need to flag in Table2.csv as 1 else 0.
[I tried this as well. It doesnt work.Nothing gets copied or flagged - https://stackoverflow.com/a/25493765/9774860]
- table1['flag']=table2.key.map(table1.key)