Skip to content

Commit

Permalink
little test with the code
Browse files Browse the repository at this point in the history
  • Loading branch information
YDD committed Mar 23, 2020
1 parent 37d3bf3 commit 646b488
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ def prepare_country_stats(oecd_bli, gdp_per_capita):
# Download the data
import urllib.request
DOWNLOAD_ROOT = "https://raw.githubusercontent.com/ageron/handson-ml2/master/"
#DOWNLOAD_ROOT = "https://analyse.kmi.open.ac.uk/open_dataset"
os.makedirs(datapath, exist_ok=True)
for filename in ("oecd_bli_2015.csv", "gdp_per_capita.csv"):
#for filename in ("courses.csv", "vle.csv"):
print("Downloading", filename)
url = DOWNLOAD_ROOT + "datasets/lifesat/" + filename
#url = DOWNLOAD_ROOT + "datasets/testset" + filename
urllib.request.urlretrieve(url, datapath + filename)

print(datapath)
exit(0)
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
Expand Down

0 comments on commit 646b488

Please sign in to comment.