Data Manipulation - Rows to Columns

Tess testone at
Wed Feb 6 03:54:49 CET 2008

Hello All,

I have a text file with marked up data that I need to convert into a
text tab separated file.

The structure of the input file is listed below (see file 1) and the
desired output file is below as well (see file 2).

I am a complete novice with python and would appreciate any tips you
may be able to provide.



file 1:

file 2 (tab separated):
TABLE	black	blue	red
CHAIR	yellow	black	red
TABLE	white	gray	pink

More information about the Python-list mailing list