我有一个这样的csv,
type,name,ad1,pin,ph
"A","aaaaa","23 rd.","45789","4578954"
"F","bbbbb","23 rd.","84789","4578954"
"D","ccccc","34 rd.","45646","7845663"
这需要格式化为这样的纯文本文件。
type
name
ad1, PIN-pin
PH: ph
所以最终的输出是这样的。
A
aaaaa
23 rd., PIN- 45789,
PH: 4578954
F
bbbbb
23 rd. PIN-84789
PH:4578954
D
ccccc
34 rd., PIN-45646
PH: 7845663
是否有可能在 csvkit 中实现这一点。