On Sat, Jan 9, 2010 at 05:26, Jon Clements wrote:
>> reader = open('C:/test.txt','rb')
>> data = csv.DictReader(reader,restval='000',restkey='Misc')
>
> [snip]
>
> DictReader works, but what use to bug me was the fact you couldn't
> then output the cols in the 'correct' order afterwards, so you h
On Jan 8, 8:31 pm, J wrote:
> On Fri, Jan 8, 2010 at 13:55, Jon Clements wrote:
> > On Jan 8, 5:59 pm, marlowe wrote:
> >> I am trying to create a table in python from a csv file where I input
> >> which columns I would like to see, and the table only shows those
> >> columns. I have attached an
On Fri, Jan 8, 2010 at 13:55, Jon Clements wrote:
> On Jan 8, 5:59 pm, marlowe wrote:
>> I am trying to create a table in python from a csv file where I input
>> which columns I would like to see, and the table only shows those
>> columns. I have attached an example of the csv file i am using, an
On Jan 8, 5:59 pm, marlowe wrote:
> I am trying to create a table in python from a csv file where I input
> which columns I would like to see, and the table only shows those
> columns. I have attached an example of the csv file i am using, and
> some of the code I have written. I am having trouble
I am trying to create a table in python from a csv file where I input
which columns I would like to see, and the table only shows those
columns. I have attached an example of the csv file i am using, and
some of the code I have written. I am having trouble converting
variables between lists, dictio