This file contains hidden or 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Apr 28 11:58:10 2015 | |
@author: Duncan Parkes | |
""" | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import numpy as np |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import itertools | |
# Load data | |
prices = pd.read_csv("PizzaPrices.csv") | |
# Filter out an unwanted establishment | |
prices = prices[(prices['establishment_name'] != "Pizza Zone")] |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import math | |
# Some functions to later apply to our columns | |
def dcos(theta): | |
theta = theta*(math.pi/180) | |
return math.cos(theta) | |
NewerOlder