-
Notifications
You must be signed in to change notification settings - Fork 1
/
cleanLstops.py
16 lines (14 loc) · 32.4 KB
/
cleanLstops.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import csv
#STOP_ID DIRECTION_ID STOP_NAME LON LAT STATION_NAME STATION_DESCRIPTIVE_NAME PARENT_STOP_ID ADA Red Blue Brn G P Pexp Y Pink Org
f = open('CHICAGO_DATA/cta_L_stops/cta_L_stops.csv', 'rb')
res = open('CHICAGO_DATA/cta_L_stops/cta_L_stops_new.csv', 'wb')
csvread = csv.reader(f)
csvwrite = csv.writer(res)
count = 0
keepLine = True
for line in csvread:
if (keepLine==False):
keepLine=True
continue
csvwrite.writerow(line)
keepLine=False