Well, if I have a file like this one:
EWIENER,
edit,
edgard,
evan,
erick,
elliott,
Lee Chaplin wrote:
> Hi all,
>
> I am trying to sort, in place, by column, a csv file AND sort it case
> insensitive.
> I was trying something like this, with no success:
>
> import csv
> import operator
>
> def sortcsvbyfield(csvfilename, columnnumber):
> with open(csvfilename, 'rb') as f:
>
On 04/16/2012 01:11 AM, Lee Chaplin wrote:
> Hi all,
>
> I am trying to sort, in place, by column, a csv file AND sort it case
> insensitive.
> I was trying something like this, with no success:
Could you perhaps qualify that "no success" bit? Do you mean it didn't
output a file, or that the file
Hi all,
I am trying to sort, in place, by column, a csv file AND sort it case
insensitive.
I was trying something like this, with no success:
import csv
import operator
def sortcsvbyfield(csvfilename, columnnumber):
with open(csvfilename, 'rb') as f:
readit = csv.reader(f)
thedata = li