Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/misc-python. All my Python code for class or other things.
Something went wrong. Try again.
12345678910111213141516171819202122232425#This seminar took place on February 8th, 2017.import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport urllib.request as urr
#The URL's for our datasetses_url = "https://www.stoxx.com/document/Indices/Current/HistoricalData/hbrbcpe.txt" #This one has a problem with semicolonsvs_url = "https://www.stoxx.com/document/Indices/Current/HistoricalData/h_vstoxx.txt"
#Print a concantenated output of the two URLs.#print(es_url + '\n' + vs_url)
#Retrieve the page as a file.urr.urlretrieve(es_url, "es.txt")urr.urlretrieve(vs_url, "vs.txt")
lines = open("es.txt")lines2 = lines.readlines()lines3 = [lines2.replace(' ', '') for line in lines]
print(lines2.line)
#We didn't even make it to the same point me made it to last week. God damn.