Created
April 30, 2019 20:25
-
-
Save berensn/6e769f86e3f87724512740af81fe376a to your computer and use it in GitHub Desktop.
CSV Parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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