【发布时间】:2017-05-02 10:54:20
【问题描述】:
我有 customer_data.csv 如下:
first_name,last_name,cust_no
Test,User1,12345
Test,User2,99999
我的address_Details.csv如下:
addr_type,line1,line2,line3,cust_no
work,x,y,z,12345
school,a,b,c,12345
Homehome, ,m, ,n, ,o, ,12345
work,1,2,3,99999
我的最终输出应该如下:
first_name,last_name,cust_no,no_of_addrs,add_type,line1,line2,line3
test,User1,12345,3,work,x,y,y,school,a,b,c,home,m,n,o
test,User2,99999,1,work,1,2,3,,,,,,,,
每个 id 有多少条连接在一起的条目?
Test|User1|12345|work|x|y|z
Test|User1|12345|school|a|b|c
Test|User1|12345|home|m|n|o
Test|User2|99999|work|1|2|3
我必须改用什么组件?
【问题讨论】: