0

我正在尝试通过将其与国家 CSV 数据库进行比较来更正我的districtnameA.csvB.csv

以下是我的内容A.csv

"Series","No","districtname","PinCode"
"A","101","Mysuru","570010"
"A","103","D. K. ","574216"
"A","104","Bengaluru","560004"
"A","105","Bengaluru","560010"
"A","106","Doddaballapura","561203"
"A","107","Bengaluru","560002"
"A","109","Bengaluru","560050"
"A","110","Bengaluru","560076"
"A","111","Tumkur ","572112"

的内容B.csv

PinCode,districtname
744112,South Andaman
744101,South Andaman
744103,South Andaman
744104,South Andaman
744201,North And Middle Andaman
744107,South Andaman
744302,Nicobar
744301,Nicobar
744202,North And Middle Andaman
...……

如何使用列PinCode作为A.csv键来查找中提到的官方地区名称B.csv

命令行方法csvkit会很有帮助。

4

1 回答 1

0

它是

csvjoin -I --left -c 4,1 fil1.csv file2.csv
于 2019-01-05T17:25:01.590 回答