Skip to content

Instantly share code, notes, and snippets.

@nonkung51
Created February 4, 2018 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nonkung51/d9c3511757ed5a6b043ce1b470bb84c4 to your computer and use it in GitHub Desktop.
Save nonkung51/d9c3511757ed5a6b043ce1b470bb84c4 to your computer and use it in GitHub Desktop.
Visualization BTC price.
import csv
import matplotlib.pyplot as plt
date = []
value = []
count = 1
with open('BitCoin_data.csv') as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
for row in readCSV:
value.append(float(row[1]))
date.append(2184-count)
count += 1
plt.plot(date, value)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment