I'm new to Python and would like to write data of different types to the columns of a csv file.
I have two lists and one ndarray. I would like to have these as the three columns with the first row being the variable names.
Is there are a way to do this in one line or does one have to first convert to arrays?
len(all_docs.data)
Out[34]: 19916
In [35]: type(all_docs.data)
Out[35]: list
In [36]: len(all_docs.target)
Out[36]: 19916
In [37]: type(all_docs.target)
Out[37]: numpy.ndarray
In [38]: id = range(len(all_docs.target)