Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

what is the python code to transpose rows of data to columns separated by commas?

Avatar of Ricky Ng
Ricky Ng asked on
Python
8 Comments1 Solution7169 ViewsLast Modified:
Hi Experts,

I have these fields:

TXN_ID     CAT_ID
123              45
123              42
123              56
222              10
455              22
455              11


I want to transpose to this without column headers using Python code

123, 45, 42, 56
222, 10
455, 22, 11

Please help?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Walter Ritzel
Walter RitzelFlag of Brazil imageSenior Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answers