consider this piece of code:
csvreader = csv.reader(filter(lambda row: row[0] != '#', fcsv), delimiter= '\t')
csvrs =[[row[2], row[7]] for row in csvreader]
the element row[7] is a string separated by ;, what i want to do is not put the entire row[7] inside csvrs but only a splitted part seaprated by ;
Say for example:
row[7] = '123;457;789;1011'
i want only the second position inside csvrs (in this case 457) and i want this every time filtering out every other piece. I'M trying with split with no result maintaining the list comprehension.
.split(), and what does it do wrong?