Assuming that you want to get the values after the comma, you can do something like this:
with open('ops.log', 'r') as log_fh:
data = [int(line.split(',')[1]) for line in log_fh.readlines()]
print max(data), min(data)
solved Return Max and min not working right [closed]