我正在尝试通过将其与国家 CSV 数据库进行比较来更正我的districtname
列A.csv
B.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
会很有帮助。