summaryrefslogtreecommitdiffstats
path: root/src/s3select/example/parse_csv.py
blob: 23fe14add0ee39d3007c9fe382ab38953af5912c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python

import csv

with open('stam.txt') as csv_file:
    csv_reader = csv.reader(csv_file, delimiter=',')
    line_count = 0
    for row in csv_reader:
        #if (int(row[0])==465 and int(row[5])==268): # casting is slower
        if (row[0]=="465" and row[5]=="268"):
            print row