Skip to content

Instantly share code, notes, and snippets.

@uniphil
Last active August 29, 2015 14:06
Show Gist options
  • Save uniphil/6de31f505a57166bcd59 to your computer and use it in GitHub Desktop.
Save uniphil/6de31f505a57166bcd59 to your computer and use it in GitHub Desktop.
pizza prices
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "",
"signature": "sha256:63a1ea10f9e0e1ba944bca95f62e0f1c3aa3b18753e9019266007b7f45595e18"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Hack Nights Pizza"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"I went through all my emails from pizza pizza in reverse chronological order and noted the amounts paid (tip not included):"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"pizza_payments = [55, 35, 30, 46, 38, 60, 77, 77, 57, 30, 56, 54, 51, 62, 57, 50, 35, 38, 33, 51, 62, 29, 34, 34, 57, 33, 45, 33, 33, 23, 29, 54, 69, 54, 48, 48, 52, 70, 70, 54, 54, 75, 40]"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 9
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Here is a bar chart going back in time:"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"%matplotlib inline\n",
"import matplotlib.pyplot as plt"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 23
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.bar(range(len(pizza_payments)), pizza_payments)\n",
"plt.show()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data",
"png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAEACAYAAACuzv3DAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAEVtJREFUeJzt3W2sHNddx/Hv2k7I093aS9H1VZPWJuA6VC0NlKiQQDeR\nXSVVMeZNCFLLVQjlTWkikNo4lZDvK5pGQg0SEoK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Vmr6RrpeZFutIfwHs0xz6KcM7dSpLii2rT4BfBh4rWVb0W3VqaYGA7RTHkFe5gOFbib8\n8d0BfJAwpFA2DcrRhn8GbCYMJbwA/HFBdVwDfBG4DzjfdltRbXUN8NeEml6h+LZ6LX3ua4FfAW5t\nu72odmqvq06xbfVe4DRhzLlbb3fSbdWtpoHaKY8gz3KgUFFeSK9fBJ4gDAOVwTJh/BVgjvAPW7TT\nNN/Uj1BMW11GCPFHgb3ptqLbaqWmv2ypqQxtBfAy8LfAz1N8O7VaqesdFNtWv0QYRvkB8BhwG+G9\nVWRbdarpswzYTnkE+VPAT9M8UOg3aA7gF+kqYCZdvhp4Nxd/uVekfcB8ujxPMyCKNNey/OtMvq0q\nhI+Ux4CHW7YX2VbdaiqyrV5P82P3lcB2Qu+u6PdUt7o2ttxn0m31UULHcjNwF/BV4P0U21adavot\niv/7A8p5oNBmwnjdUcLUsaLqegz4d+B/CN8l3E2YSfMVipv+1F7TbxN6Bc8Qxuj2Mvlxw1sIH82P\ncvEUrCLbqlNNd1BsW70VeDqt6RnCWCsU/57qVlfR76sV76LZwSy6rVbUW2p6lHK0kyRJkiRJkiRJ\nkiRJkiRJkiRJkqRx+39ZA97IkuGbLAAAAABJRU5ErkJggg==\n",
"text": [
"<matplotlib.figure.Figure at 0x7f39297fe450>"
]
}
],
"prompt_number": 24
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Not super-interesting. No obvious trends.\n",
"\n",
"How about a histogram with $5 buckets:"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"plt.hist(pizza_payments, bins=20, range=(0, 100))\n",
"plt.show()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data",
"png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAEACAYAAACXqUyYAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAADchJREFUeJzt3X2MXFd5x/Hv2otJ7Ow6dqCENqkcXAVQiQgpDQFCc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Z+H+O3q/g3Ah8inf32bgEOkMYR8+reT9LnDGaQZ9ueANzJk/0b551WfAnyW9BPiturYo6TpPKQ3\nzWMjPO+4OQp8Afgt8ujfS4BXkZYNbgV+lzSGOfSt7+Hq+hDpDXEh+fTvp9Xlnur+buAC4BHy6F/f\ny0mTwUPV/VzG74XAN4H/An4B/BPwYoYcv2EDewL4OOknxQ1Ljn+etIBOdX0bMT2NY5/SnkpaY5oh\nj/69j/QhzjnAlcBXgTeRR98gfeYwVd3eQloH3Uc+/XuE9O/6nFvd30X6xsEe8uhf31WkCUVfLuN3\nELiIlCsTpPE7QMvjdzHwJOnXzf7Xby4nLajfSfyv3pxHWh/cS/p62Lur47n0r+8Sjn1LJJe+nUMa\nt72kr5z2/8grl/4BPJ80w/4uaYa2lbz6twX4T4794IW8+vcejn2t7ybSakVO/ZMkSZIkSZIkSZIk\nSZIkSZIkSZJG80vo+89hltWBWAAAAABJRU5ErkJggg==\n",
"text": [
"<matplotlib.figure.Figure at 0x7f3930235dd0>"
]
}
],
"prompt_number": 20
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"So we have like, big hack nights and small hack nights, at about \\$35 and \\$55. Or maybe Pizza Pizza has good specials and bad specials. Who knows.\n",
"\n",
"Well anyway here is probably the only useful information from this data:"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"average_payment = float(sum(pizza_payments)) / len(pizza_payments)\n",
"print('$ {:.2f}'.format(average_payment))\n",
"print('$ {:.2f} with tip'.format(average_payment + 5))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"$ 48.65\n",
"$ 53.65 with tip\n"
]
}
],
"prompt_number": 21
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment