Python - Nested List to Tab Delimited File?

Posted by Seafoid on Stack Overflow See other posts from Stack Overflow or by Seafoid
Published on 2010-03-24T16:59:25Z Indexed on 2010/03/24 17:03 UTC
Read the original article Hit count: 349

Filed under:
|
|
|

Hi,

I have a nested list comprising ~30,000 sub-lists, each with three entries, e.g.,

nested_list = [['x', 'y', 'z'], ['a', 'b', 'c']].

I wish to create a function in order to output this data construct into a tab delimited format, e.g.,

x    y    z
a    b    c

Any help greatly appreciated!

Thanks in advance, Seafoid.

© Stack Overflow or respective owner

Related posts about python

Related posts about tab-delimited