Skip to content

Instantly share code, notes, and snippets.

@berensn
Created April 30, 2019 20:25
Show Gist options
  • Save berensn/6e769f86e3f87724512740af81fe376a to your computer and use it in GitHub Desktop.
Save berensn/6e769f86e3f87724512740af81fe376a to your computer and use it in GitHub Desktop.
CSV Parser
import csv
with open('data.csv') as csv_file:
read = csv.reader(csv_file, delimiter=',')
next(read)
for row in read:
if float(row[5]) >= 5.83526:
print(f'Quote: Time[{row[3]}] BidPrice[{row[5]}]')
if float(row[9]) >= 5.83526:
print(f'Quote: Time[{row[7]}] AskPrice[{row[9]}]\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment