0

it would probably look something like this

```
# untested
x = 1000
with open(path, 'rb') as fileobj:
data = [x.strip().split(' ') for x in fileobj.readlines()]
total_rows = len(data)
for n in xrange(1, total_rows):
first = int(data[n-1][0].strip())
second = int(data[n][0].strip())
print (second-first)/x
```

0

```
# untested
x = 1000
with open(path, 'rb') as fileobj:
data = [[y for y in x.strip().split(' ') if y] for x in fileobj.readlines()]
total_rows = len(data)
for n in xrange(1, total_rows):
try:
first = int(data[n-1][0].strip())
second = int(data[n][0].strip())
print (second-first)/x
except ValueError:
print "couldn't convert a number to integer, row %s"%n
print data[n-1][0], data[n][0]
```

You

This article has been dead for over six months: Start a new discussion instead