Created
February 4, 2018 08:03
-
-
Save nonkung51/d9c3511757ed5a6b043ce1b470bb84c4 to your computer and use it in GitHub Desktop.
Visualization BTC price.
This file contains 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 | |
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