Python Forum
Python count - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Python count (/thread-13873.html)



Python count - mohan7490 - Nov-04-2018

Can somebody help me with the below problem. I want to convert the comma delimited values into count of products for each customer
Cust Prod
A Can, Soap
C Can, Soap
A Can, Soap
A Can,Fudge
B Can,Fudge
B Can,Fudge
C Gun
C Gun

Cust Can Soap Fudge Gun
A
B
C


comma delimited values to count - mohan7490 - Nov-04-2018

Can somebody help me with the below problem. I want to convert the comma delimited values into count of products for each customer

Cust Prod
A Can, Soap
C Can, Soap
A Can, Soap
A Can,Fudge
B Can,Fudge
B Can,Fudge
C Gun
C Gun

Cust Can Soap Fudge Gun
A
B
C


RE: Python count - micseydel - Nov-07-2018

What have you tried?


RE: Python count - ichabod801 - Nov-07-2018

And what exactly is the problem you are having with your code?