Created
October 18, 2019 00:33
-
-
Save Skanda319/34e21f21853d1b13ddcc79d967bcd897 to your computer and use it in GitHub Desktop.
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 pandas as pd | |
import io | |
import requests | |
url = "https://coinmetrics.io/newdata/"+"btc"+".csv" | |
s = requests.get(url).content | |
btc_data = pd.read_csv(io.StringIO(s.decode('utf-8'))) | |
#we add this in to tag a larger data frame if we were | |
#pulling data for multiple coins | |
btc_data.insert(0, "token", "btc") | |
btc_data.tail() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment