Re: CSV, lists, and functions

2013-03-20 Thread rusi
On Mar 20, 6:37 am, Roy Smith wrote: > > Another possibility is to use pandas (http://pandas.pydata.org/). Thanks for the link -- looks interesting! -- http://mail.python.org/mailman/listinfo/python-list

Re: CSV, lists, and functions

2013-03-19 Thread Roy Smith
In article , Dave Angel wrote: > But you should switch to using the csv module. And unless you have data > that consists of millions of lines, you should just read the whole thing > in once, and then extract the various columns by simple list > manipulations and/or comprehensions. Another p

Re: CSV, lists, and functions

2013-03-19 Thread Dave Angel
On 03/19/2013 06:59 PM, C.T. wrote: Hello, Currently doing a project for class an I'm stuck. I have a csv file that I'm suppose to extract some information from. I've created a function that ignores the first six lines of the csv file and creates a list of values in a particular column. Here

Re: CSV, lists, and functions

2013-03-19 Thread Roy Smith
In article <1d7fcebe-8677-42ec-a53d-284214296...@googlegroups.com>, "C.T." wrote: > Currently doing a project for class an I'm stuck. I have a csv file that I'm > suppose to extract some information from. I've created a function that > ignores the first six lines of the csv file and creates a

CSV, lists, and functions

2013-03-19 Thread C.T.
Hello, Currently doing a project for class an I'm stuck. I have a csv file that I'm suppose to extract some information from. I've created a function that ignores the first six lines of the csv file and creates a list of values in a particular column. Here is the code: def get_values(file, in