From 4285070b90eebb9168e3971214350fec8fe4349c Mon Sep 17 00:00:00 2001 From: ariapn Date: Wed, 28 Feb 2018 20:46:25 -0600 Subject: [PATCH] Add files via upload --- Review of Pandas Basics.ipynb | 4943 +++++++++++++++++++++++++++++++++ 1 file changed, 4943 insertions(+) create mode 100644 Review of Pandas Basics.ipynb diff --git a/Review of Pandas Basics.ipynb b/Review of Pandas Basics.ipynb new file mode 100644 index 0000000..e88a6db --- /dev/null +++ b/Review of Pandas Basics.ipynb @@ -0,0 +1,4943 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Review of Pandas\n", + "\n", + "-----" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Preliminaries" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'/home/data_scientist/accy575'" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# Print working directory\n", + "%pwd" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "/home/data_scientist/accy575/readonly/Pcard\n" + ] + } + ], + "source": [ + "%cd '/home/data_scientist/accy575/readonly/Pcard'" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\u001b[0m\u001b[01;32mPCard_FY2010.csv\u001b[0m* \u001b[01;32mPCard_FY2012.csv\u001b[0m* \u001b[01;32mPCard_FY2014.csv\u001b[0m*\r\n", + "\u001b[01;32mPCard_FY2011.csv\u001b[0m* \u001b[01;32mPCard_FY2013.csv\u001b[0m* \u001b[01;32mPCard_FY2015.csv\u001b[0m*\r\n" + ] + } + ], + "source": [ + "%ls" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## The `Series` Data Structure" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can think of a series as a single column of data. Each element of the series has a label (called the index). \n", + "\n", + "Let's create a simple series:" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "0 a\n", + "1 b\n", + "2 c\n", + "3 d\n", + "dtype: object" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "s1 = pd.Series(['a','b','c','d'])\n", + "s1" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'c'" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "s1[2]" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Notice that, by default, Pandas created labels for each element of my series. These default labels always start at 0. If I want to use different labels, I can do so:" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "element 1 a\n", + "element 2 b\n", + "element 3 c\n", + "element 4 d\n", + "dtype: object" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "s2 = pd.Series(\n", + " ['a','b','c','d'], \n", + " index = ['element 1', 'element 2', 'element 3', 'element 4']\n", + ")\n", + "s2" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'c'" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "s2['element 3']" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## The `DataFrame` Data Structure\n", + "\n", + "You can think of a DataFrame as a table of data, with rows and columns. Alternatively, you can think of a DataFrame as a collection of Series objects, _each of which share the same row index_.\n", + "\n", + "I will now show you how to create a DataFrames from a CSV file." + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "df2012 = pd.read_csv('PCard_FY2012.csv')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Let's look at the first 5 rows of the DataFrame using the head command." + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Agency NumberAgency NameCardholder Last NameCardholder First InitialDescriptionAmountVendorTransaction DatePosted DateMerchant Category Code (MCC)
01000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$60.07WM SUPERCENTER30-Jun-111-Jul-11GROCERY STORES AND SUPERMARKETS
11000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$41.29WM SUPERCENTER30-Jun-111-Jul-11GROCERY STORES AND SUPERMARKETS
21000OKLAHOMA STATE UNIVERSITYBEROUSEKMGENERAL PURCHASE($180.00)A.C.E. SUPPLY & SERVICE30-Jun-111-Jul-11STATIONERY OFFICE SUPPLIES PRINTING AND WRIT...
31000OKLAHOMA STATE UNIVERSITYFOCHTRGENERAL PURCHASE$9.36NAPA AUTO PARTS29-Jun-111-Jul-11AUTOMOTIVE PARTS AND ACCESSORIES STORES
41000OKLAHOMA STATE UNIVERSITYFOCHTRGENERAL PURCHASE$16.86NAPA AUTO PARTS29-Jun-111-Jul-11AUTOMOTIVE PARTS AND ACCESSORIES STORES
\n", + "
" + ], + "text/plain": [ + " Agency Number Agency Name Cardholder Last Name \\\n", + "0 1000 OKLAHOMA STATE UNIVERSITY BELL \n", + "1 1000 OKLAHOMA STATE UNIVERSITY BELL \n", + "2 1000 OKLAHOMA STATE UNIVERSITY BEROUSEK \n", + "3 1000 OKLAHOMA STATE UNIVERSITY FOCHT \n", + "4 1000 OKLAHOMA STATE UNIVERSITY FOCHT \n", + "\n", + " Cardholder First Initial Description Amount \\\n", + "0 D GENERAL PURCHASE $60.07 \n", + "1 D GENERAL PURCHASE $41.29 \n", + "2 M GENERAL PURCHASE ($180.00) \n", + "3 R GENERAL PURCHASE $9.36 \n", + "4 R GENERAL PURCHASE $16.86 \n", + "\n", + " Vendor Transaction Date Posted Date \\\n", + "0 WM SUPERCENTER 30-Jun-11 1-Jul-11 \n", + "1 WM SUPERCENTER 30-Jun-11 1-Jul-11 \n", + "2 A.C.E. SUPPLY & SERVICE 30-Jun-11 1-Jul-11 \n", + "3 NAPA AUTO PARTS 29-Jun-11 1-Jul-11 \n", + "4 NAPA AUTO PARTS 29-Jun-11 1-Jul-11 \n", + "\n", + " Merchant Category Code (MCC) \n", + "0 GROCERY STORES AND SUPERMARKETS \n", + "1 GROCERY STORES AND SUPERMARKETS \n", + "2 STATIONERY OFFICE SUPPLIES PRINTING AND WRIT... \n", + "3 AUTOMOTIVE PARTS AND ACCESSORIES STORES \n", + "4 AUTOMOTIVE PARTS AND ACCESSORIES STORES " + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df2012.head()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This is looking pretty good. Let's get some basic stats about our DataFrame:" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(442184, 10)" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# This gives (number of rows, number of columns)\n", + "df2012.shape" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Index(['Agency Number', 'Agency Name', 'Cardholder Last Name',\n", + " 'Cardholder First Initial', 'Description', 'Amount', 'Vendor',\n", + " 'Transaction Date', 'Posted Date', 'Merchant Category Code (MCC)'],\n", + " dtype='object')" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df2012.columns" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "Agency Number int64\n", + "Agency Name object\n", + "Cardholder Last Name object\n", + "Cardholder First Initial object\n", + "Description object\n", + "Amount object\n", + "Vendor object\n", + "Transaction Date object\n", + "Posted Date object\n", + "Merchant Category Code (MCC) object\n", + "dtype: object" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df2012.dtypes" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "RangeIndex: 442184 entries, 0 to 442183\n", + "Data columns (total 10 columns):\n", + "Agency Number 442184 non-null int64\n", + "Agency Name 442184 non-null object\n", + "Cardholder Last Name 442184 non-null object\n", + "Cardholder First Initial 442184 non-null object\n", + "Description 442147 non-null object\n", + "Amount 442184 non-null object\n", + "Vendor 442184 non-null object\n", + "Transaction Date 442184 non-null object\n", + "Posted Date 442184 non-null object\n", + "Merchant Category Code (MCC) 442184 non-null object\n", + "dtypes: int64(1), object(9)\n", + "memory usage: 33.7+ MB\n" + ] + } + ], + "source": [ + "df2012.info()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Renaming Columns\n", + "\n", + "What if we want to rename the columns? The best practice is to rename columns as you import the data:" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "# Note: if you don't say header = 0, it will import these names as the first row of your dataset!\n", + "\n", + "newcolnames = ['agency_number', 'agency_name', 'last_name', 'first_initial', 'description',\n", + " 'amount','vendor', 'transaction_date', 'posted_date', 'MCC']\n", + "\n", + "df2012 = pd.read_csv('PCard_FY2012.csv', skiprows = 1, names = newcolnames)" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
agency_numberagency_namelast_namefirst_initialdescriptionamountvendortransaction_dateposted_dateMCC
01000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$60.07WM SUPERCENTER30-Jun-111-Jul-11GROCERY STORES AND SUPERMARKETS
11000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$41.29WM SUPERCENTER30-Jun-111-Jul-11GROCERY STORES AND SUPERMARKETS
21000OKLAHOMA STATE UNIVERSITYBEROUSEKMGENERAL PURCHASE($180.00)A.C.E. SUPPLY & SERVICE30-Jun-111-Jul-11STATIONERY OFFICE SUPPLIES PRINTING AND WRIT...
31000OKLAHOMA STATE UNIVERSITYFOCHTRGENERAL PURCHASE$9.36NAPA AUTO PARTS29-Jun-111-Jul-11AUTOMOTIVE PARTS AND ACCESSORIES STORES
41000OKLAHOMA STATE UNIVERSITYFOCHTRGENERAL PURCHASE$16.86NAPA AUTO PARTS29-Jun-111-Jul-11AUTOMOTIVE PARTS AND ACCESSORIES STORES
\n", + "
" + ], + "text/plain": [ + " agency_number agency_name last_name first_initial \\\n", + "0 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "1 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "2 1000 OKLAHOMA STATE UNIVERSITY BEROUSEK M \n", + "3 1000 OKLAHOMA STATE UNIVERSITY FOCHT R \n", + "4 1000 OKLAHOMA STATE UNIVERSITY FOCHT R \n", + "\n", + " description amount vendor transaction_date \\\n", + "0 GENERAL PURCHASE $60.07 WM SUPERCENTER 30-Jun-11 \n", + "1 GENERAL PURCHASE $41.29 WM SUPERCENTER 30-Jun-11 \n", + "2 GENERAL PURCHASE ($180.00) A.C.E. SUPPLY & SERVICE 30-Jun-11 \n", + "3 GENERAL PURCHASE $9.36 NAPA AUTO PARTS 29-Jun-11 \n", + "4 GENERAL PURCHASE $16.86 NAPA AUTO PARTS 29-Jun-11 \n", + "\n", + " posted_date MCC \n", + "0 1-Jul-11 GROCERY STORES AND SUPERMARKETS \n", + "1 1-Jul-11 GROCERY STORES AND SUPERMARKETS \n", + "2 1-Jul-11 STATIONERY OFFICE SUPPLIES PRINTING AND WRIT... \n", + "3 1-Jul-11 AUTOMOTIVE PARTS AND ACCESSORIES STORES \n", + "4 1-Jul-11 AUTOMOTIVE PARTS AND ACCESSORIES STORES " + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df2012.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "RangeIndex: 442184 entries, 0 to 442183\n", + "Data columns (total 10 columns):\n", + "agency_number 442184 non-null int64\n", + "agency_name 442184 non-null object\n", + "last_name 442184 non-null object\n", + "first_initial 442184 non-null object\n", + "description 442147 non-null object\n", + "amount 442184 non-null object\n", + "vendor 442184 non-null object\n", + "transaction_date 442184 non-null object\n", + "posted_date 442184 non-null object\n", + "MCC 442184 non-null object\n", + "dtypes: int64(1), object(9)\n", + "memory usage: 33.7+ MB\n" + ] + } + ], + "source": [ + "df2012.info()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Subsets of the Data\n", + "\n", + "Sometimes, you only want to work with a subset of your DataFrame. There are many ways to filter a DataFrame and I will only show you a few.\n", + "\n", + "Let's say we're only interested in cardholders whose last name is Bell." + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
agency_numberagency_namelast_namefirst_initialdescriptionamountvendortransaction_dateposted_dateMCC
01000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$60.07WM SUPERCENTER30-Jun-111-Jul-11GROCERY STORES AND SUPERMARKETS
11000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$41.29WM SUPERCENTER30-Jun-111-Jul-11GROCERY STORES AND SUPERMARKETS
6441000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$136.43CREST FOODS #57-Jul-1111-Jul-11GROCERY STORES AND SUPERMARKETS
6451000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$10.00DOLRTREE 3803 000380347-Jul-1111-Jul-11DISCOUNT STORES
6461000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE($13.07)WM SUPERCENTER7-Jul-1111-Jul-11GROCERY STORES AND SUPERMARKETS
6471000OKLAHOMA STATE UNIVERSITYBELLGSERVICE/HANDLING/FUEL SURC EA|BTLBULKDOT-2ENMC...$460.30VWR INTERNATIONAL INC8-Jul-1111-Jul-11DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
9251000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$13.07WM SUPERCENTER7-Jul-118-Jul-11GROCERY STORES AND SUPERMARKETS
9261000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$11.24DUNN'S FOOD CENTER6-Jul-118-Jul-11GROCERY STORES AND SUPERMARKETS
9271000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$12.06WM SUPERCENTER7-Jul-118-Jul-11GROCERY STORES AND SUPERMARKETS
25781000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$144.56WM SUPERCENTER12-Jul-1113-Jul-11GROCERY STORES AND SUPERMARKETS
25791000OKLAHOMA STATE UNIVERSITYBELLGHARDWARE CLOTH HEIGHT 36 EA$75.02W W GRAINGER 91611-Jul-1113-Jul-11INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED
25801000OKLAHOMA STATE UNIVERSITYBELLGTAPESELF FUSINGSILICONE EA$9.65W W GRAINGER 91612-Jul-1113-Jul-11INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED
31841000OKLAHOMA STATE UNIVERSITYBELLPSAND 40-100 MESH 5K EA$201.03FISHER SCI HUS14-Jul-1115-Jul-11DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
31851000OKLAHOMA STATE UNIVERSITYBELLP3M 3 EXTRA WIDE DUCT TAPE EA$19.96LOWES #0024114-Jul-1115-Jul-11HOME SUPPLY WAREHOUSE STORES
32791000OKLAHOMA STATE UNIVERSITYBELLG4 PVC FEMALE ADAPTER 101 PCS|4 PVC CLEANOUT P...$57.56LOWES #0024111-Jul-1112-Jul-11HOME SUPPLY WAREHOUSE STORES
45831000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$274.78JIMCOLEMAN LTD #212-Jul-1114-Jul-11NON-DURABLE GOODS NOT ELSEWHERE CLASSIFIED
45841000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$88.00DOLRTREE 3803 0003803412-Jul-1114-Jul-11DISCOUNT STORES
45851000OKLAHOMA STATE UNIVERSITYBELLPNylon Mesh Sheet 30 Micro PCE$105.03Amazon.com14-Jul-1114-Jul-11BOOK STORES
47651000OKLAHOMA STATE UNIVERSITYBELLGCONTAINERPLASTIC GRAY EA$177.24W W GRAINGER 9166-Jul-117-Jul-11INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED
47661000OKLAHOMA STATE UNIVERSITYBELLGGENERAL PURCHASE$579.60STILLWATER SAND & GRAVEL6-Jul-117-Jul-11LUMBER AND BUILDING MATERIALS STORES
47671000OKLAHOMA STATE UNIVERSITYBELLG9.8OZ DUP ALM PRMR K&B SI EA|1/4L (3/8O/D)X2'...$45.46LOWES #002416-Jul-117-Jul-11HOME SUPPLY WAREHOUSE STORES
47681000OKLAHOMA STATE UNIVERSITYBELLPCUSHION PISTOL GRIP NOZZLE EA|JH GRABIT #2 SCR...$19.03LOWES #002416-Jul-117-Jul-11HOME SUPPLY WAREHOUSE STORES
49561000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$226.24COPELINS OFFICE CENTER LL1-Jul-114-Jul-11OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM...
49571000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$36.90OKLAHOMA RESTAURANT SUPPL1-Jul-114-Jul-11COMMERCIAL EQUIPMENT NOT ELSEWHERE CLASSIFIED
49581000OKLAHOMA STATE UNIVERSITYBELLGBUILDING WIRESTRANDED14A EA|COUPLING1/2 IN SLI...$66.56W W GRAINGER 9161-Jul-114-Jul-11INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED
49591000OKLAHOMA STATE UNIVERSITYBELLGPRIMERPURPLE8 OZPVC AND EA$10.54W W GRAINGER 9161-Jul-114-Jul-11INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED
49601000OKLAHOMA STATE UNIVERSITYBELLP2X5'PVC SCH40 PIPE SOLID PCS$19.14LOWES #002411-Jul-114-Jul-11HOME SUPPLY WAREHOUSE STORES
49901000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$22.07CREST FOODS #55-Jul-117-Jul-11GROCERY STORES AND SUPERMARKETS
50691000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$65.55CREST FOODS #530-Jun-114-Jul-11GROCERY STORES AND SUPERMARKETS
55071000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$55.03CREST FOODS #520-Jul-1122-Jul-11GROCERY STORES AND SUPERMARKETS
.................................
3704281000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$9.99BED BATH & BEYOND #16417-May-1221-May-12MISCELLANEOUS HOME FURNISHING SPECIALTY STORES
3714881000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE($199.05)COPELINS OFFICE CENTER LL7-May-129-May-12OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM...
3714891000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$199.05COPELINS OFFICE CENTER LL7-May-129-May-12OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM...
3714901000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$199.05COPELINS OFFICE CENTER LL7-May-129-May-12OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM...
3717131000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$23.92WM SUPERCENTER#162616-May-1217-May-12GROCERY STORES AND SUPERMARKETS
3725561000OKLAHOMA STATE UNIVERSITYBELLDMYPLATE PLATE EA$52.55NASCO CATALOG SALES10-May-1214-May-12STATIONERY OFFICE AND SCHOOL SUPPLY STORES
3733671000OKLAHOMA STATE UNIVERSITYBELLDPAPERCOPYODCASE10-RE NMB$208.92OFFICE DEPOT #10799-May-1211-May-12COMBINATION CATALOG AND RETAIL MERCHANT
3733681000OKLAHOMA STATE UNIVERSITYBELLDLABELLSRADDRWHT3000C NMB|CUTLERY KEEPERHVYWEIG...$208.42OFFICE DEPOT #10799-May-1211-May-12COMBINATION CATALOG AND RETAIL MERCHANT
3740541000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$14.40CREST FOODS #58-May-1210-May-12GROCERY STORES AND SUPERMARKETS
3740551000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$152.74BREVIS CORPORATION9-May-1210-May-12PROFESSIONAL SERVICES NOT ELSEWHERE CLASSIFIED
3740561000OKLAHOMA STATE UNIVERSITYBELLKGENERAL PURCHASE$80.03DOMINO'S 64608-May-1210-May-12FAST FOOD RESTAURANTS
3760461000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$23.92WM SUPERCENTER#162630-Apr-121-May-12GROCERY STORES AND SUPERMARKETS
3760471000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$5.92WM SUPERCENTER#162630-Apr-121-May-12GROCERY STORES AND SUPERMARKETS
4060271000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$93.11CREST FOODS #522-Jun-1225-Jun-12GROCERY STORES AND SUPERMARKETS
4068001000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$39.96BED BATH & BEYOND #16425-Jun-1227-Jun-12MISCELLANEOUS HOME FURNISHING SPECIALTY STORES
4078731000OKLAHOMA STATE UNIVERSITYBELLDMYPLATE GUIDELINES TEARPAD EA|PERIODIC TABLE/S...$121.13NASCO CATALOG SALES26-Jun-1228-Jun-12STATIONERY OFFICE AND SCHOOL SUPPLY STORES
4079971000OKLAHOMA STATE UNIVERSITYBELLDMYPLATE GUIDELINES TEARPAD EA|PERIODIC TABLE/S...$334.65NASCO CATALOG SALES26-Jun-1228-Jun-12STATIONERY OFFICE AND SCHOOL SUPPLY STORES
4081431000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$117.65LEARNINGZONEXPRESS COM21-Jun-1222-Jun-12COMPUTERS COMPUTER PERIPHERAL EQUIPMENT SOFT...
4081441000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$42.85LEARNINGZONEXPRESS COM21-Jun-1222-Jun-12COMPUTERS COMPUTER PERIPHERAL EQUIPMENT SOFT...
4095751000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$47.12OK DEPT OF VO-TECH ED8-Jun-1211-Jun-12GOVERNMENT SERVICES--NOT ELSEWHERE CLASSIFIED
4132921000OKLAHOMA STATE UNIVERSITYBELLPCLEAR W&D SILICONE II 9.8 EA$11.90LOWES #002414-Jun-125-Jun-12HOME SUPPLY WAREHOUSE STORES
4132931000OKLAHOMA STATE UNIVERSITYBELLPGENERAL PURCHASE$17.31WM SUPERCENTER#01374-Jun-125-Jun-12GROCERY STORES AND SUPERMARKETS
4147601000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$38.43CREST FOODS #511-Jun-1213-Jun-12GROCERY STORES AND SUPERMARKETS
42819976000UNIVERSITY OF OKLAHOMABELLMGENERAL PURCHASE($324.95)AVANGATE PERFECTTABLEP19-Jun-1220-Jun-12COMPUTER SOFTWARE STORES
42900376000UNIVERSITY OF OKLAHOMABELLMGENERAL PURCHASE$120.00UCDA13-Jun-1214-Jun-12MEMBERSHIP ORGANIZATIONS--NOT ELSEWHERE CLASSI...
42908176000UNIVERSITY OF OKLAHOMABELLMGENERAL PURCHASE$30.00CORBIS/VEER LICENSE1-Jun-124-Jun-12COMMERCIAL PHOTOGRAPHY ART AND GRAPHICS
43218676000UNIVERSITY OF OKLAHOMABELLMGENERAL PURCHASE$324.95AVANGATE PERFECTTABLEP8-Jun-1211-Jun-12COMPUTER SOFTWARE STORES
43218776000UNIVERSITY OF OKLAHOMABELLMDescription Unavailable NBR|Description Unavai...$46.85BARNES & NOBLE #28079-Jun-1211-Jun-12BOOK STORES
43218876000UNIVERSITY OF OKLAHOMABELLMGENERAL PURCHASE$2.60INTERNATIONAL TRANSACTION11-Jun-1211-Jun-12OTHER FEES
43326676000UNIVERSITY OF OKLAHOMABELLMPPRCPY28#100BLTRWE RM|PPRCPY28#100B11X17WE RM|...$342.54Staples Contra0071000420-Jun-1222-Jun-12STATIONERY OFFICE SUPPLIES PRINTING AND WRIT...
\n", + "

311 rows × 10 columns

\n", + "
" + ], + "text/plain": [ + " agency_number agency_name last_name first_initial \\\n", + "0 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "1 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "644 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "645 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "646 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "647 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "925 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "926 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "927 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "2578 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "2579 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "2580 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "3184 1000 OKLAHOMA STATE UNIVERSITY BELL P \n", + "3185 1000 OKLAHOMA STATE UNIVERSITY BELL P \n", + "3279 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "4583 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "4584 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "4585 1000 OKLAHOMA STATE UNIVERSITY BELL P \n", + "4765 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "4766 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "4767 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "4768 1000 OKLAHOMA STATE UNIVERSITY BELL P \n", + "4956 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "4957 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "4958 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "4959 1000 OKLAHOMA STATE UNIVERSITY BELL G \n", + "4960 1000 OKLAHOMA STATE UNIVERSITY BELL P \n", + "4990 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "5069 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "5507 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "... ... ... ... ... \n", + "370428 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "371488 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "371489 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "371490 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "371713 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "372556 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "373367 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "373368 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "374054 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "374055 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "374056 1000 OKLAHOMA STATE UNIVERSITY BELL K \n", + "376046 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "376047 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "406027 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "406800 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "407873 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "407997 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "408143 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "408144 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "409575 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "413292 1000 OKLAHOMA STATE UNIVERSITY BELL P \n", + "413293 1000 OKLAHOMA STATE UNIVERSITY BELL P \n", + "414760 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "428199 76000 UNIVERSITY OF OKLAHOMA BELL M \n", + "429003 76000 UNIVERSITY OF OKLAHOMA BELL M \n", + "429081 76000 UNIVERSITY OF OKLAHOMA BELL M \n", + "432186 76000 UNIVERSITY OF OKLAHOMA BELL M \n", + "432187 76000 UNIVERSITY OF OKLAHOMA BELL M \n", + "432188 76000 UNIVERSITY OF OKLAHOMA BELL M \n", + "433266 76000 UNIVERSITY OF OKLAHOMA BELL M \n", + "\n", + " description amount \\\n", + "0 GENERAL PURCHASE $60.07 \n", + "1 GENERAL PURCHASE $41.29 \n", + "644 GENERAL PURCHASE $136.43 \n", + "645 GENERAL PURCHASE $10.00 \n", + "646 GENERAL PURCHASE ($13.07) \n", + "647 SERVICE/HANDLING/FUEL SURC EA|BTLBULKDOT-2ENMC... $460.30 \n", + "925 GENERAL PURCHASE $13.07 \n", + "926 GENERAL PURCHASE $11.24 \n", + "927 GENERAL PURCHASE $12.06 \n", + "2578 GENERAL PURCHASE $144.56 \n", + "2579 HARDWARE CLOTH HEIGHT 36 EA $75.02 \n", + "2580 TAPESELF FUSINGSILICONE EA $9.65 \n", + "3184 SAND 40-100 MESH 5K EA $201.03 \n", + "3185 3M 3 EXTRA WIDE DUCT TAPE EA $19.96 \n", + "3279 4 PVC FEMALE ADAPTER 101 PCS|4 PVC CLEANOUT P... $57.56 \n", + "4583 GENERAL PURCHASE $274.78 \n", + "4584 GENERAL PURCHASE $88.00 \n", + "4585 Nylon Mesh Sheet 30 Micro PCE $105.03 \n", + "4765 CONTAINERPLASTIC GRAY EA $177.24 \n", + "4766 GENERAL PURCHASE $579.60 \n", + "4767 9.8OZ DUP ALM PRMR K&B SI EA|1/4L (3/8O/D)X2'... $45.46 \n", + "4768 CUSHION PISTOL GRIP NOZZLE EA|JH GRABIT #2 SCR... $19.03 \n", + "4956 GENERAL PURCHASE $226.24 \n", + "4957 GENERAL PURCHASE $36.90 \n", + "4958 BUILDING WIRESTRANDED14A EA|COUPLING1/2 IN SLI... $66.56 \n", + "4959 PRIMERPURPLE8 OZPVC AND EA $10.54 \n", + "4960 2X5'PVC SCH40 PIPE SOLID PCS $19.14 \n", + "4990 GENERAL PURCHASE $22.07 \n", + "5069 GENERAL PURCHASE $65.55 \n", + "5507 GENERAL PURCHASE $55.03 \n", + "... ... ... \n", + "370428 GENERAL PURCHASE $9.99 \n", + "371488 GENERAL PURCHASE ($199.05) \n", + "371489 GENERAL PURCHASE $199.05 \n", + "371490 GENERAL PURCHASE $199.05 \n", + "371713 GENERAL PURCHASE $23.92 \n", + "372556 MYPLATE PLATE EA $52.55 \n", + "373367 PAPERCOPYODCASE10-RE NMB $208.92 \n", + "373368 LABELLSRADDRWHT3000C NMB|CUTLERY KEEPERHVYWEIG... $208.42 \n", + "374054 GENERAL PURCHASE $14.40 \n", + "374055 GENERAL PURCHASE $152.74 \n", + "374056 GENERAL PURCHASE $80.03 \n", + "376046 GENERAL PURCHASE $23.92 \n", + "376047 GENERAL PURCHASE $5.92 \n", + "406027 GENERAL PURCHASE $93.11 \n", + "406800 GENERAL PURCHASE $39.96 \n", + "407873 MYPLATE GUIDELINES TEARPAD EA|PERIODIC TABLE/S... $121.13 \n", + "407997 MYPLATE GUIDELINES TEARPAD EA|PERIODIC TABLE/S... $334.65 \n", + "408143 GENERAL PURCHASE $117.65 \n", + "408144 GENERAL PURCHASE $42.85 \n", + "409575 GENERAL PURCHASE $47.12 \n", + "413292 CLEAR W&D SILICONE II 9.8 EA $11.90 \n", + "413293 GENERAL PURCHASE $17.31 \n", + "414760 GENERAL PURCHASE $38.43 \n", + "428199 GENERAL PURCHASE ($324.95) \n", + "429003 GENERAL PURCHASE $120.00 \n", + "429081 GENERAL PURCHASE $30.00 \n", + "432186 GENERAL PURCHASE $324.95 \n", + "432187 Description Unavailable NBR|Description Unavai... $46.85 \n", + "432188 GENERAL PURCHASE $2.60 \n", + "433266 PPRCPY28#100BLTRWE RM|PPRCPY28#100B11X17WE RM|... $342.54 \n", + "\n", + " vendor transaction_date posted_date \\\n", + "0 WM SUPERCENTER 30-Jun-11 1-Jul-11 \n", + "1 WM SUPERCENTER 30-Jun-11 1-Jul-11 \n", + "644 CREST FOODS #5 7-Jul-11 11-Jul-11 \n", + "645 DOLRTREE 3803 00038034 7-Jul-11 11-Jul-11 \n", + "646 WM SUPERCENTER 7-Jul-11 11-Jul-11 \n", + "647 VWR INTERNATIONAL INC 8-Jul-11 11-Jul-11 \n", + "925 WM SUPERCENTER 7-Jul-11 8-Jul-11 \n", + "926 DUNN'S FOOD CENTER 6-Jul-11 8-Jul-11 \n", + "927 WM SUPERCENTER 7-Jul-11 8-Jul-11 \n", + "2578 WM SUPERCENTER 12-Jul-11 13-Jul-11 \n", + "2579 W W GRAINGER 916 11-Jul-11 13-Jul-11 \n", + "2580 W W GRAINGER 916 12-Jul-11 13-Jul-11 \n", + "3184 FISHER SCI HUS 14-Jul-11 15-Jul-11 \n", + "3185 LOWES #00241 14-Jul-11 15-Jul-11 \n", + "3279 LOWES #00241 11-Jul-11 12-Jul-11 \n", + "4583 JIMCOLEMAN LTD #2 12-Jul-11 14-Jul-11 \n", + "4584 DOLRTREE 3803 00038034 12-Jul-11 14-Jul-11 \n", + "4585 Amazon.com 14-Jul-11 14-Jul-11 \n", + "4765 W W GRAINGER 916 6-Jul-11 7-Jul-11 \n", + "4766 STILLWATER SAND & GRAVEL 6-Jul-11 7-Jul-11 \n", + "4767 LOWES #00241 6-Jul-11 7-Jul-11 \n", + "4768 LOWES #00241 6-Jul-11 7-Jul-11 \n", + "4956 COPELINS OFFICE CENTER LL 1-Jul-11 4-Jul-11 \n", + "4957 OKLAHOMA RESTAURANT SUPPL 1-Jul-11 4-Jul-11 \n", + "4958 W W GRAINGER 916 1-Jul-11 4-Jul-11 \n", + "4959 W W GRAINGER 916 1-Jul-11 4-Jul-11 \n", + "4960 LOWES #00241 1-Jul-11 4-Jul-11 \n", + "4990 CREST FOODS #5 5-Jul-11 7-Jul-11 \n", + "5069 CREST FOODS #5 30-Jun-11 4-Jul-11 \n", + "5507 CREST FOODS #5 20-Jul-11 22-Jul-11 \n", + "... ... ... ... \n", + "370428 BED BATH & BEYOND #164 17-May-12 21-May-12 \n", + "371488 COPELINS OFFICE CENTER LL 7-May-12 9-May-12 \n", + "371489 COPELINS OFFICE CENTER LL 7-May-12 9-May-12 \n", + "371490 COPELINS OFFICE CENTER LL 7-May-12 9-May-12 \n", + "371713 WM SUPERCENTER#1626 16-May-12 17-May-12 \n", + "372556 NASCO CATALOG SALES 10-May-12 14-May-12 \n", + "373367 OFFICE DEPOT #1079 9-May-12 11-May-12 \n", + "373368 OFFICE DEPOT #1079 9-May-12 11-May-12 \n", + "374054 CREST FOODS #5 8-May-12 10-May-12 \n", + "374055 BREVIS CORPORATION 9-May-12 10-May-12 \n", + "374056 DOMINO'S 6460 8-May-12 10-May-12 \n", + "376046 WM SUPERCENTER#1626 30-Apr-12 1-May-12 \n", + "376047 WM SUPERCENTER#1626 30-Apr-12 1-May-12 \n", + "406027 CREST FOODS #5 22-Jun-12 25-Jun-12 \n", + "406800 BED BATH & BEYOND #164 25-Jun-12 27-Jun-12 \n", + "407873 NASCO CATALOG SALES 26-Jun-12 28-Jun-12 \n", + "407997 NASCO CATALOG SALES 26-Jun-12 28-Jun-12 \n", + "408143 LEARNINGZONEXPRESS COM 21-Jun-12 22-Jun-12 \n", + "408144 LEARNINGZONEXPRESS COM 21-Jun-12 22-Jun-12 \n", + "409575 OK DEPT OF VO-TECH ED 8-Jun-12 11-Jun-12 \n", + "413292 LOWES #00241 4-Jun-12 5-Jun-12 \n", + "413293 WM SUPERCENTER#0137 4-Jun-12 5-Jun-12 \n", + "414760 CREST FOODS #5 11-Jun-12 13-Jun-12 \n", + "428199 AVANGATE PERFECTTABLEP 19-Jun-12 20-Jun-12 \n", + "429003 UCDA 13-Jun-12 14-Jun-12 \n", + "429081 CORBIS/VEER LICENSE 1-Jun-12 4-Jun-12 \n", + "432186 AVANGATE PERFECTTABLEP 8-Jun-12 11-Jun-12 \n", + "432187 BARNES & NOBLE #2807 9-Jun-12 11-Jun-12 \n", + "432188 INTERNATIONAL TRANSACTION 11-Jun-12 11-Jun-12 \n", + "433266 Staples Contra00710004 20-Jun-12 22-Jun-12 \n", + "\n", + " MCC \n", + "0 GROCERY STORES AND SUPERMARKETS \n", + "1 GROCERY STORES AND SUPERMARKETS \n", + "644 GROCERY STORES AND SUPERMARKETS \n", + "645 DISCOUNT STORES \n", + "646 GROCERY STORES AND SUPERMARKETS \n", + "647 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "925 GROCERY STORES AND SUPERMARKETS \n", + "926 GROCERY STORES AND SUPERMARKETS \n", + "927 GROCERY STORES AND SUPERMARKETS \n", + "2578 GROCERY STORES AND SUPERMARKETS \n", + "2579 INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED \n", + "2580 INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED \n", + "3184 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "3185 HOME SUPPLY WAREHOUSE STORES \n", + "3279 HOME SUPPLY WAREHOUSE STORES \n", + "4583 NON-DURABLE GOODS NOT ELSEWHERE CLASSIFIED \n", + "4584 DISCOUNT STORES \n", + "4585 BOOK STORES \n", + "4765 INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED \n", + "4766 LUMBER AND BUILDING MATERIALS STORES \n", + "4767 HOME SUPPLY WAREHOUSE STORES \n", + "4768 HOME SUPPLY WAREHOUSE STORES \n", + "4956 OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM... \n", + "4957 COMMERCIAL EQUIPMENT NOT ELSEWHERE CLASSIFIED \n", + "4958 INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED \n", + "4959 INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED \n", + "4960 HOME SUPPLY WAREHOUSE STORES \n", + "4990 GROCERY STORES AND SUPERMARKETS \n", + "5069 GROCERY STORES AND SUPERMARKETS \n", + "5507 GROCERY STORES AND SUPERMARKETS \n", + "... ... \n", + "370428 MISCELLANEOUS HOME FURNISHING SPECIALTY STORES \n", + "371488 OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM... \n", + "371489 OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM... \n", + "371490 OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM... \n", + "371713 GROCERY STORES AND SUPERMARKETS \n", + "372556 STATIONERY OFFICE AND SCHOOL SUPPLY STORES \n", + "373367 COMBINATION CATALOG AND RETAIL MERCHANT \n", + "373368 COMBINATION CATALOG AND RETAIL MERCHANT \n", + "374054 GROCERY STORES AND SUPERMARKETS \n", + "374055 PROFESSIONAL SERVICES NOT ELSEWHERE CLASSIFIED \n", + "374056 FAST FOOD RESTAURANTS \n", + "376046 GROCERY STORES AND SUPERMARKETS \n", + "376047 GROCERY STORES AND SUPERMARKETS \n", + "406027 GROCERY STORES AND SUPERMARKETS \n", + "406800 MISCELLANEOUS HOME FURNISHING SPECIALTY STORES \n", + "407873 STATIONERY OFFICE AND SCHOOL SUPPLY STORES \n", + "407997 STATIONERY OFFICE AND SCHOOL SUPPLY STORES \n", + "408143 COMPUTERS COMPUTER PERIPHERAL EQUIPMENT SOFT... \n", + "408144 COMPUTERS COMPUTER PERIPHERAL EQUIPMENT SOFT... \n", + "409575 GOVERNMENT SERVICES--NOT ELSEWHERE CLASSIFIED \n", + "413292 HOME SUPPLY WAREHOUSE STORES \n", + "413293 GROCERY STORES AND SUPERMARKETS \n", + "414760 GROCERY STORES AND SUPERMARKETS \n", + "428199 COMPUTER SOFTWARE STORES \n", + "429003 MEMBERSHIP ORGANIZATIONS--NOT ELSEWHERE CLASSI... \n", + "429081 COMMERCIAL PHOTOGRAPHY ART AND GRAPHICS \n", + "432186 COMPUTER SOFTWARE STORES \n", + "432187 BOOK STORES \n", + "432188 OTHER FEES \n", + "433266 STATIONERY OFFICE SUPPLIES PRINTING AND WRIT... \n", + "\n", + "[311 rows x 10 columns]" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# The following are equivalent:\n", + "\n", + "#df2012[df2012['last_name'] == 'BELL']\n", + "df2012[df2012.last_name == 'BELL']\n", + "#df2012[df2012.loc[:,'last_name'] == 'BELL']" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Subset with multiple filters\n", + "\n", + "What if we want to use multiple filters? Use the following tips:\n", + "* Each condition *MUST* be grouped in parentheses\n", + "* Use the operators & for and, | for or, and ~ for not\n", + "\n", + "In the following, note that the date field hasn't been converted to a Python date." + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
agency_numberagency_namelast_namefirst_initialdescriptionamountvendortransaction_dateposted_dateMCC
01000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$60.07WM SUPERCENTER30-Jun-111-Jul-11GROCERY STORES AND SUPERMARKETS
11000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$41.29WM SUPERCENTER30-Jun-111-Jul-11GROCERY STORES AND SUPERMARKETS
50691000OKLAHOMA STATE UNIVERSITYBELLDGENERAL PURCHASE$65.55CREST FOODS #530-Jun-114-Jul-11GROCERY STORES AND SUPERMARKETS
\n", + "
" + ], + "text/plain": [ + " agency_number agency_name last_name first_initial \\\n", + "0 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "1 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "5069 1000 OKLAHOMA STATE UNIVERSITY BELL D \n", + "\n", + " description amount vendor transaction_date posted_date \\\n", + "0 GENERAL PURCHASE $60.07 WM SUPERCENTER 30-Jun-11 1-Jul-11 \n", + "1 GENERAL PURCHASE $41.29 WM SUPERCENTER 30-Jun-11 1-Jul-11 \n", + "5069 GENERAL PURCHASE $65.55 CREST FOODS #5 30-Jun-11 4-Jul-11 \n", + "\n", + " MCC \n", + "0 GROCERY STORES AND SUPERMARKETS \n", + "1 GROCERY STORES AND SUPERMARKETS \n", + "5069 GROCERY STORES AND SUPERMARKETS " + ] + }, + "execution_count": 19, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#df2012[(df2012['LastName'] == 'BELL') & (df2012['Transaction Date'] == '30-Jun-11')]\n", + "df2012[(df2012.last_name == 'BELL') & (df2012.transaction_date == '30-Jun-11')]" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Sorting the Data\n", + "Output data is easier to look at and understand when it is ordered or sorted on our variable or variables of interest. Suppose we care about the vendor. We can sort by vendor in the following way:" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
agency_numberagency_namelast_namefirst_initialdescriptionamountvendortransaction_dateposted_dateMCC
20380958500DEPARTMENT OF PUBLIC SAFETYBRADLEYCGENERAL PURCHASE$7.37# 11 CITY BITES1-Dec-112-Dec-11EATING PLACES AND RESTAURANTS
13543055700POLICE PENSION & RET. SYSTEMGORDONDGENERAL PURCHASE$269.99# 11 CITY BITES19-Oct-1120-Oct-11EATING PLACES AND RESTAURANTS
20363258500DEPARTMENT OF PUBLIC SAFETYARMSTRONGSGENERAL PURCHASE$10.36# 17 CITY BITES28-Dec-1129-Dec-11EATING PLACES AND RESTAURANTS
411921000OKLAHOMA STATE UNIVERSITYHANCOCKKGENERAL PURCHASE$156.99# 21 CITY BITES14-Aug-1115-Aug-11EATING PLACES AND RESTAURANTS
2590061000OKLAHOMA STATE UNIVERSITYLEONARDAGENERAL PURCHASE$59.68# 21 CITY BITES5-Feb-126-Feb-12EATING PLACES AND RESTAURANTS
20375558500DEPARTMENT OF PUBLIC SAFETYTERRELLEGENERAL PURCHASE$6.38# 25 CITY BITES9-Dec-1112-Dec-11EATING PLACES AND RESTAURANTS
2616776000UNIVERSITY OF OKLAHOMAENGLEHTransaction Line Item$5.99#08 VS 32316926599420-Jul-1122-Jul-11Record Shops
18385277000UNIV. OF OKLA. HEALTH SCIENCE CENTEREASLEYCGENERAL PURCHASE$55.68#1 PARTY SUPPLIES2-Nov-117-Nov-11MISCELLANEOUS AND SPECIALTY RETAIL STORES
1873981000OKLAHOMA STATE UNIVERSITYHUDSONSGENERAL PURCHASE$43.36#21 VS1-Dec-115-Dec-11BOOK STORES
1225631000OKLAHOMA STATE UNIVERSITYJACKSONJGENERAL PURCHASE$43.08#41 BRIO COUNTRY CLUB1-Oct-113-Oct-11EATING PLACES AND RESTAURANTS
13708058500DEPARTMENT OF PUBLIC SAFETYRANGELAGENERAL PURCHASE$25.13#44 BRAVO| MEMORIAL SQUA20-Oct-1124-Oct-11EATING PLACES AND RESTAURANTS
13706658500DEPARTMENT OF PUBLIC SAFETYGRANGERGENERAL PURCHASE$20.93#44 BRAVO| MEMORIAL SQUA21-Oct-1124-Oct-11EATING PLACES AND RESTAURANTS
27352358500DEPARTMENT OF PUBLIC SAFETYPAGEMGENERAL PURCHASE$22.92#44 BRAVO| MEMORIAL SQUA23-Feb-1227-Feb-12EATING PLACES AND RESTAURANTS
35018058500DEPARTMENT OF PUBLIC SAFETYTERRELLEGENERAL PURCHASE$12.60#44 BRAVO| MEMORIAL SQUA18-Apr-1220-Apr-12EATING PLACES AND RESTAURANTS
42570858500DEPARTMENT OF PUBLIC SAFETYRANGELAGENERAL PURCHASE$17.90#44 BRAVO| MEMORIAL SQUA19-Jun-1221-Jun-12EATING PLACES AND RESTAURANTS
1831358500DEPARTMENT OF PUBLIC SAFETYABERNATHYMGENERAL PURCHASE$20.64#44 BRAVO| MEMORIAL SQUA22-Jul-1125-Jul-11EATING PLACES AND RESTAURANTS
23700458500DEPARTMENT OF PUBLIC SAFETYHARBINTGENERAL PURCHASE$16.64#44 BRAVO| MEMORIAL SQUA4-Jan-126-Jan-12EATING PLACES AND RESTAURANTS
464491000OKLAHOMA STATE UNIVERSITYHANCOCKKROOM CHARGES$2,908.62#464 RADISSON HOTEL CENTR15-Aug-1116-Aug-11LODGING--HOTELS MOTELS AND RESORTS
2957971000OKLAHOMA STATE UNIVERSITYBRORSENWGENERAL PURCHASE$150.00(SA)HANGUKJEUNGGYONHAGHOI23-Feb-1213-Mar-12MISCELLANEOUS PERSONAL SERVICES--NOT ELSEWHERE...
10771576000UNIVERSITY OF OKLAHOMANIELSENTGENERAL PURCHASE$188.00000 DILLARD'S INC.31-Aug-111-Sep-11DEPARTMENT STORES
2381176000UNIVERSITY OF OKLAHOMABRAUNBECKJGENERAL PURCHASE$90.00003 CENTURYLINK MY ACCOUN1-Jul-114-Jul-11TELECOMMUNICATION SERVICES
1918761000OKLAHOMA STATE UNIVERSITYDAVISMGENERAL PURCHASE$38.91003 CENTURYLINK MY ACCOUN6-Dec-117-Dec-11TELECOMMUNICATION SERVICES
3313101000OKLAHOMA STATE UNIVERSITYDAVISMGENERAL PURCHASE$39.04003 CENTURYLINK MY ACCOUN23-Apr-1224-Apr-12TELECOMMUNICATION SERVICES
24510776000UNIVERSITY OF OKLAHOMABRAUNBECKJGENERAL PURCHASE$37.46003 CENTURYLINK MY ACCOUN19-Jan-1220-Jan-12TELECOMMUNICATION SERVICES
24224976000UNIVERSITY OF OKLAHOMABRAUNBECKJGENERAL PURCHASE$37.22003 CENTURYLINK MY ACCOUN6-Jan-129-Jan-12TELECOMMUNICATION SERVICES
17645676000UNIVERSITY OF OKLAHOMABRAUNBECKJGENERAL PURCHASE$93.29003 CENTURYLINK MY ACCOUN4-Nov-117-Nov-11TELECOMMUNICATION SERVICES
2931761000OKLAHOMA STATE UNIVERSITYDAVISMGENERAL PURCHASE$39.06003 CENTURYLINK MY ACCOUN26-Mar-1227-Mar-12TELECOMMUNICATION SERVICES
27710776000UNIVERSITY OF OKLAHOMABRAUNBECKJGENERAL PURCHASE$37.46003 CENTURYLINK MY ACCOUN20-Feb-1221-Feb-12TELECOMMUNICATION SERVICES
10786176000UNIVERSITY OF OKLAHOMABRAUNBECKJGENERAL PURCHASE$92.15003 CENTURYLINK MY ACCOUN1-Sep-112-Sep-11TELECOMMUNICATION SERVICES
2273741000OKLAHOMA STATE UNIVERSITYDAVISMGENERAL PURCHASE$39.06003 CENTURYLINK MY ACCOUN17-Jan-1218-Jan-12TELECOMMUNICATION SERVICES
.................................
28670777000UNIV. OF OKLA. HEALTH SCIENCES CENTERYANDELLRGENERAL PURCHASE$233.58pss_2025 INV MULTIPLE10-Feb-1213-Feb-12DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
15046477000UNIV. OF OKLA. HEALTH SCIENCE CENTEREASLEYCGENERAL PURCHASE$181.17pss_2025 INV MULTIPLE19-Oct-1120-Oct-11DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
28756677000UNIV. OF OKLA. HEALTH SCIENCES CENTEREASLEYCGENERAL PURCHASE$103.20pss_2025 INV MULTIPLE3-Feb-126-Feb-12DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
1951421000OKLAHOMA STATE UNIVERSITYTOLBARTSGENERAL PURCHASE$1,177.02pss_2025 INV MULTIPLE16-Dec-1119-Dec-11DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
18134177000UNIV. OF OKLA. HEALTH SCIENCE CENTERYANDELLRGENERAL PURCHASE$130.21pss_2025 INV MULTIPLE16-Nov-1117-Nov-11DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
39950177000UNIV. OF OKLA. HEALTH SCIENCES CENTEREASLEYCGENERAL PURCHASE$165.73pss_2025 INV MULTIPLE5-May-127-May-12DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
39890077000UNIV. OF OKLA. HEALTH SCIENCES CENTERYANDELLRGENERAL PURCHASE$260.24pss_2025 INV MULTIPLE24-May-1225-May-12DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
14767577000UNIV. OF OKLA. HEALTH SCIENCE CENTERYANDELLRGENERAL PURCHASE$174.14pss_2025 INV MULTIPLE29-Oct-1131-Oct-11DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
43516877000UNIV. OF OKLA. HEALTH SCIENCES CENTEREASLEYCGENERAL PURCHASE$1,904.98pss_2025 INV MULTIPLE23-Jun-1225-Jun-12DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
4141721000OKLAHOMA STATE UNIVERSITYDEANVGENERAL PURCHASE$688.01robotis-shop-en.com15-Jun-1218-Jun-12DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE...
7456077000UNIV. OF OKLA. HEALTH SCIENCE CENTERSUMMERS-ABLESJGENERAL PURCHASE$9.95soilsleuth@aol.com23-Aug-1124-Aug-11DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE...
14178176000UNIVERSITY OF OKLAHOMAFARROWVGENERAL PURCHASE$69.44value plastics inc18-Oct-1119-Oct-11MISCELLANEOUS AND SPECIALTY RETAIL STORES
2567241000OKLAHOMA STATE UNIVERSITYJEYASINGHPGENERAL PURCHASE$87.15value plastics inc23-Feb-1224-Feb-12MISCELLANEOUS AND SPECIALTY RETAIL STORES
28557677000UNIV. OF OKLA. HEALTH SCIENCES CENTERPALASZLGENERAL PURCHASE$756.62value plastics inc7-Feb-128-Feb-12MISCELLANEOUS AND SPECIALTY RETAIL STORES
388881000OKLAHOMA STATE UNIVERSITYMOFFATMGENERAL PURCHASE$185.00vet imaging5-Aug-118-Aug-11MISCELLANEOUS AND SPECIALTY RETAIL STORES
1282329000EMPLOYMENT SECURITY COMMISSIONHANHGENERAL PURCHASE$95.40wmill.com ResponseOmatic6-Jul-118-Jul-11PROFESSIONAL SERVICES NOT ELSEWHERE CLASSIFIED
35696876000UNIVERSITY OF OKLAHOMAHENKELSSGENERAL PURCHASE$399.00www.anastasiadate.com8-Apr-129-Apr-12DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS
3777502500OKLAHOMA MILITARY DEPARTMENTSWENSONKGENERAL PURCHASE$476.37www.dumpster.com8-May-1210-May-12FUEL DEALERS--FUEL OIL WOOD COAL AND LIQ. PETR...
4154732500OKLAHOMA MILITARY DEPARTMENTSWENSONKGENERAL PURCHASE$509.75www.dumpster.com27-Jun-1229-Jun-12FUEL DEALERS--FUEL OIL WOOD COAL AND LIQ. PETR...
43885477000UNIV. OF OKLA. HEALTH SCIENCES CENTERCAMPBELLKGENERAL PURCHASE$489.00www.favoriteplus.com8-Jun-1211-Jun-12DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP...
21593477000UNIV. OF OKLA. HEALTH SCIENCE CENTERKRANZJGENERAL PURCHASE$259.00www.karger.ch16-Dec-1119-Dec-11COMBINATION CATALOG AND RETAIL MERCHANT
7487977000UNIV. OF OKLA. HEALTH SCIENCE CENTERCROCKETTMGENERAL PURCHASE$179.00www.karger.ch12-Aug-1115-Aug-11COMBINATION CATALOG AND RETAIL MERCHANT
24860577000UNIV. OF OKLA. HEALTH SCIENCES CENTERWILLIAMSKGENERAL PURCHASE$179.00www.karger.ch20-Jan-1223-Jan-12COMBINATION CATALOG AND RETAIL MERCHANT
24748177000UNIV. OF OKLA. HEALTH SCIENCES CENTERLEYGENERAL PURCHASE$38.00www.karger.ch13-Jan-1217-Jan-12MISCELLANEOUS AND SPECIALTY RETAIL STORES
43329776000UNIVERSITY OF OKLAHOMABARDGETTLGENERAL PURCHASE$88.82www.mohr.de27-Jun-1228-Jun-12BOOK STORES
27625676000UNIVERSITY OF OKLAHOMASUBLETTGGENERAL PURCHASE$329.50www.realtimesoft.com14-Feb-1216-Feb-12COMPUTER SOFTWARE STORES
24293676000UNIVERSITY OF OKLAHOMASUBLETTGGENERAL PURCHASE$39.95www.realtimesoft.com3-Jan-125-Jan-12COMPUTER SOFTWARE STORES
1881071000OKLAHOMA STATE UNIVERSITYTHOMPSONSGENERAL PURCHASE$164.98www.testking.com30-Nov-112-Dec-11BUSINESS SERVICES NOT ELSEWHERE CLASSIFIED
14128876000UNIVERSITY OF OKLAHOMATURNERCGENERAL PURCHASE$1.00zombaio.com C1904261318615-Oct-1117-Oct-11DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS
14129376000UNIVERSITY OF OKLAHOMATURNERCGENERAL PURCHASE$1.00zombaio.com C3817811318615-Oct-1117-Oct-11DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS
\n", + "

442184 rows × 10 columns

\n", + "
" + ], + "text/plain": [ + " agency_number agency_name last_name \\\n", + "203809 58500 DEPARTMENT OF PUBLIC SAFETY BRADLEY \n", + "135430 55700 POLICE PENSION & RET. SYSTEM GORDON \n", + "203632 58500 DEPARTMENT OF PUBLIC SAFETY ARMSTRONG \n", + "41192 1000 OKLAHOMA STATE UNIVERSITY HANCOCK \n", + "259006 1000 OKLAHOMA STATE UNIVERSITY LEONARD \n", + "203755 58500 DEPARTMENT OF PUBLIC SAFETY TERRELL \n", + "26167 76000 UNIVERSITY OF OKLAHOMA ENGLE \n", + "183852 77000 UNIV. OF OKLA. HEALTH SCIENCE CENTER EASLEY \n", + "187398 1000 OKLAHOMA STATE UNIVERSITY HUDSON \n", + "122563 1000 OKLAHOMA STATE UNIVERSITY JACKSON \n", + "137080 58500 DEPARTMENT OF PUBLIC SAFETY RANGEL \n", + "137066 58500 DEPARTMENT OF PUBLIC SAFETY GRANGE \n", + "273523 58500 DEPARTMENT OF PUBLIC SAFETY PAGE \n", + "350180 58500 DEPARTMENT OF PUBLIC SAFETY TERRELL \n", + "425708 58500 DEPARTMENT OF PUBLIC SAFETY RANGEL \n", + "18313 58500 DEPARTMENT OF PUBLIC SAFETY ABERNATHY \n", + "237004 58500 DEPARTMENT OF PUBLIC SAFETY HARBIN \n", + "46449 1000 OKLAHOMA STATE UNIVERSITY HANCOCK \n", + "295797 1000 OKLAHOMA STATE UNIVERSITY BRORSEN \n", + "107715 76000 UNIVERSITY OF OKLAHOMA NIELSEN \n", + "23811 76000 UNIVERSITY OF OKLAHOMA BRAUNBECK \n", + "191876 1000 OKLAHOMA STATE UNIVERSITY DAVIS \n", + "331310 1000 OKLAHOMA STATE UNIVERSITY DAVIS \n", + "245107 76000 UNIVERSITY OF OKLAHOMA BRAUNBECK \n", + "242249 76000 UNIVERSITY OF OKLAHOMA BRAUNBECK \n", + "176456 76000 UNIVERSITY OF OKLAHOMA BRAUNBECK \n", + "293176 1000 OKLAHOMA STATE UNIVERSITY DAVIS \n", + "277107 76000 UNIVERSITY OF OKLAHOMA BRAUNBECK \n", + "107861 76000 UNIVERSITY OF OKLAHOMA BRAUNBECK \n", + "227374 1000 OKLAHOMA STATE UNIVERSITY DAVIS \n", + "... ... ... ... \n", + "286707 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER YANDELL \n", + "150464 77000 UNIV. OF OKLA. HEALTH SCIENCE CENTER EASLEY \n", + "287566 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER EASLEY \n", + "195142 1000 OKLAHOMA STATE UNIVERSITY TOLBART \n", + "181341 77000 UNIV. OF OKLA. HEALTH SCIENCE CENTER YANDELL \n", + "399501 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER EASLEY \n", + "398900 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER YANDELL \n", + "147675 77000 UNIV. OF OKLA. HEALTH SCIENCE CENTER YANDELL \n", + "435168 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER EASLEY \n", + "414172 1000 OKLAHOMA STATE UNIVERSITY DEAN \n", + "74560 77000 UNIV. OF OKLA. HEALTH SCIENCE CENTER SUMMERS-ABLES \n", + "141781 76000 UNIVERSITY OF OKLAHOMA FARROW \n", + "256724 1000 OKLAHOMA STATE UNIVERSITY JEYASINGH \n", + "285576 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER PALASZ \n", + "38888 1000 OKLAHOMA STATE UNIVERSITY MOFFAT \n", + "12823 29000 EMPLOYMENT SECURITY COMMISSION HAN \n", + "356968 76000 UNIVERSITY OF OKLAHOMA HENKELS \n", + "377750 2500 OKLAHOMA MILITARY DEPARTMENT SWENSON \n", + "415473 2500 OKLAHOMA MILITARY DEPARTMENT SWENSON \n", + "438854 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER CAMPBELL \n", + "215934 77000 UNIV. OF OKLA. HEALTH SCIENCE CENTER KRANZ \n", + "74879 77000 UNIV. OF OKLA. HEALTH SCIENCE CENTER CROCKETT \n", + "248605 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER WILLIAMS \n", + "247481 77000 UNIV. OF OKLA. HEALTH SCIENCES CENTER LE \n", + "433297 76000 UNIVERSITY OF OKLAHOMA BARDGETT \n", + "276256 76000 UNIVERSITY OF OKLAHOMA SUBLETT \n", + "242936 76000 UNIVERSITY OF OKLAHOMA SUBLETT \n", + "188107 1000 OKLAHOMA STATE UNIVERSITY THOMPSON \n", + "141288 76000 UNIVERSITY OF OKLAHOMA TURNER \n", + "141293 76000 UNIVERSITY OF OKLAHOMA TURNER \n", + "\n", + " first_initial description amount \\\n", + "203809 C GENERAL PURCHASE $7.37 \n", + "135430 D GENERAL PURCHASE $269.99 \n", + "203632 S GENERAL PURCHASE $10.36 \n", + "41192 K GENERAL PURCHASE $156.99 \n", + "259006 A GENERAL PURCHASE $59.68 \n", + "203755 E GENERAL PURCHASE $6.38 \n", + "26167 H Transaction Line Item $5.99 \n", + "183852 C GENERAL PURCHASE $55.68 \n", + "187398 S GENERAL PURCHASE $43.36 \n", + "122563 J GENERAL PURCHASE $43.08 \n", + "137080 A GENERAL PURCHASE $25.13 \n", + "137066 R GENERAL PURCHASE $20.93 \n", + "273523 M GENERAL PURCHASE $22.92 \n", + "350180 E GENERAL PURCHASE $12.60 \n", + "425708 A GENERAL PURCHASE $17.90 \n", + "18313 M GENERAL PURCHASE $20.64 \n", + "237004 T GENERAL PURCHASE $16.64 \n", + "46449 K ROOM CHARGES $2,908.62 \n", + "295797 W GENERAL PURCHASE $150.00 \n", + "107715 T GENERAL PURCHASE $188.00 \n", + "23811 J GENERAL PURCHASE $90.00 \n", + "191876 M GENERAL PURCHASE $38.91 \n", + "331310 M GENERAL PURCHASE $39.04 \n", + "245107 J GENERAL PURCHASE $37.46 \n", + "242249 J GENERAL PURCHASE $37.22 \n", + "176456 J GENERAL PURCHASE $93.29 \n", + "293176 M GENERAL PURCHASE $39.06 \n", + "277107 J GENERAL PURCHASE $37.46 \n", + "107861 J GENERAL PURCHASE $92.15 \n", + "227374 M GENERAL PURCHASE $39.06 \n", + "... ... ... ... \n", + "286707 R GENERAL PURCHASE $233.58 \n", + "150464 C GENERAL PURCHASE $181.17 \n", + "287566 C GENERAL PURCHASE $103.20 \n", + "195142 S GENERAL PURCHASE $1,177.02 \n", + "181341 R GENERAL PURCHASE $130.21 \n", + "399501 C GENERAL PURCHASE $165.73 \n", + "398900 R GENERAL PURCHASE $260.24 \n", + "147675 R GENERAL PURCHASE $174.14 \n", + "435168 C GENERAL PURCHASE $1,904.98 \n", + "414172 V GENERAL PURCHASE $688.01 \n", + "74560 J GENERAL PURCHASE $9.95 \n", + "141781 V GENERAL PURCHASE $69.44 \n", + "256724 P GENERAL PURCHASE $87.15 \n", + "285576 L GENERAL PURCHASE $756.62 \n", + "38888 M GENERAL PURCHASE $185.00 \n", + "12823 H GENERAL PURCHASE $95.40 \n", + "356968 S GENERAL PURCHASE $399.00 \n", + "377750 K GENERAL PURCHASE $476.37 \n", + "415473 K GENERAL PURCHASE $509.75 \n", + "438854 K GENERAL PURCHASE $489.00 \n", + "215934 J GENERAL PURCHASE $259.00 \n", + "74879 M GENERAL PURCHASE $179.00 \n", + "248605 K GENERAL PURCHASE $179.00 \n", + "247481 Y GENERAL PURCHASE $38.00 \n", + "433297 L GENERAL PURCHASE $88.82 \n", + "276256 G GENERAL PURCHASE $329.50 \n", + "242936 G GENERAL PURCHASE $39.95 \n", + "188107 S GENERAL PURCHASE $164.98 \n", + "141288 C GENERAL PURCHASE $1.00 \n", + "141293 C GENERAL PURCHASE $1.00 \n", + "\n", + " vendor transaction_date posted_date \\\n", + "203809 # 11 CITY BITES 1-Dec-11 2-Dec-11 \n", + "135430 # 11 CITY BITES 19-Oct-11 20-Oct-11 \n", + "203632 # 17 CITY BITES 28-Dec-11 29-Dec-11 \n", + "41192 # 21 CITY BITES 14-Aug-11 15-Aug-11 \n", + "259006 # 21 CITY BITES 5-Feb-12 6-Feb-12 \n", + "203755 # 25 CITY BITES 9-Dec-11 12-Dec-11 \n", + "26167 #08 VS 323169265994 20-Jul-11 22-Jul-11 \n", + "183852 #1 PARTY SUPPLIES 2-Nov-11 7-Nov-11 \n", + "187398 #21 VS 1-Dec-11 5-Dec-11 \n", + "122563 #41 BRIO COUNTRY CLUB 1-Oct-11 3-Oct-11 \n", + "137080 #44 BRAVO| MEMORIAL SQUA 20-Oct-11 24-Oct-11 \n", + "137066 #44 BRAVO| MEMORIAL SQUA 21-Oct-11 24-Oct-11 \n", + "273523 #44 BRAVO| MEMORIAL SQUA 23-Feb-12 27-Feb-12 \n", + "350180 #44 BRAVO| MEMORIAL SQUA 18-Apr-12 20-Apr-12 \n", + "425708 #44 BRAVO| MEMORIAL SQUA 19-Jun-12 21-Jun-12 \n", + "18313 #44 BRAVO| MEMORIAL SQUA 22-Jul-11 25-Jul-11 \n", + "237004 #44 BRAVO| MEMORIAL SQUA 4-Jan-12 6-Jan-12 \n", + "46449 #464 RADISSON HOTEL CENTR 15-Aug-11 16-Aug-11 \n", + "295797 (SA)HANGUKJEUNGGYONHAGHOI 23-Feb-12 13-Mar-12 \n", + "107715 000 DILLARD'S INC. 31-Aug-11 1-Sep-11 \n", + "23811 003 CENTURYLINK MY ACCOUN 1-Jul-11 4-Jul-11 \n", + "191876 003 CENTURYLINK MY ACCOUN 6-Dec-11 7-Dec-11 \n", + "331310 003 CENTURYLINK MY ACCOUN 23-Apr-12 24-Apr-12 \n", + "245107 003 CENTURYLINK MY ACCOUN 19-Jan-12 20-Jan-12 \n", + "242249 003 CENTURYLINK MY ACCOUN 6-Jan-12 9-Jan-12 \n", + "176456 003 CENTURYLINK MY ACCOUN 4-Nov-11 7-Nov-11 \n", + "293176 003 CENTURYLINK MY ACCOUN 26-Mar-12 27-Mar-12 \n", + "277107 003 CENTURYLINK MY ACCOUN 20-Feb-12 21-Feb-12 \n", + "107861 003 CENTURYLINK MY ACCOUN 1-Sep-11 2-Sep-11 \n", + "227374 003 CENTURYLINK MY ACCOUN 17-Jan-12 18-Jan-12 \n", + "... ... ... ... \n", + "286707 pss_2025 INV MULTIPLE 10-Feb-12 13-Feb-12 \n", + "150464 pss_2025 INV MULTIPLE 19-Oct-11 20-Oct-11 \n", + "287566 pss_2025 INV MULTIPLE 3-Feb-12 6-Feb-12 \n", + "195142 pss_2025 INV MULTIPLE 16-Dec-11 19-Dec-11 \n", + "181341 pss_2025 INV MULTIPLE 16-Nov-11 17-Nov-11 \n", + "399501 pss_2025 INV MULTIPLE 5-May-12 7-May-12 \n", + "398900 pss_2025 INV MULTIPLE 24-May-12 25-May-12 \n", + "147675 pss_2025 INV MULTIPLE 29-Oct-11 31-Oct-11 \n", + "435168 pss_2025 INV MULTIPLE 23-Jun-12 25-Jun-12 \n", + "414172 robotis-shop-en.com 15-Jun-12 18-Jun-12 \n", + "74560 soilsleuth@aol.com 23-Aug-11 24-Aug-11 \n", + "141781 value plastics inc 18-Oct-11 19-Oct-11 \n", + "256724 value plastics inc 23-Feb-12 24-Feb-12 \n", + "285576 value plastics inc 7-Feb-12 8-Feb-12 \n", + "38888 vet imaging 5-Aug-11 8-Aug-11 \n", + "12823 wmill.com ResponseOmatic 6-Jul-11 8-Jul-11 \n", + "356968 www.anastasiadate.com 8-Apr-12 9-Apr-12 \n", + "377750 www.dumpster.com 8-May-12 10-May-12 \n", + "415473 www.dumpster.com 27-Jun-12 29-Jun-12 \n", + "438854 www.favoriteplus.com 8-Jun-12 11-Jun-12 \n", + "215934 www.karger.ch 16-Dec-11 19-Dec-11 \n", + "74879 www.karger.ch 12-Aug-11 15-Aug-11 \n", + "248605 www.karger.ch 20-Jan-12 23-Jan-12 \n", + "247481 www.karger.ch 13-Jan-12 17-Jan-12 \n", + "433297 www.mohr.de 27-Jun-12 28-Jun-12 \n", + "276256 www.realtimesoft.com 14-Feb-12 16-Feb-12 \n", + "242936 www.realtimesoft.com 3-Jan-12 5-Jan-12 \n", + "188107 www.testking.com 30-Nov-11 2-Dec-11 \n", + "141288 zombaio.com C19042613186 15-Oct-11 17-Oct-11 \n", + "141293 zombaio.com C38178113186 15-Oct-11 17-Oct-11 \n", + "\n", + " MCC \n", + "203809 EATING PLACES AND RESTAURANTS \n", + "135430 EATING PLACES AND RESTAURANTS \n", + "203632 EATING PLACES AND RESTAURANTS \n", + "41192 EATING PLACES AND RESTAURANTS \n", + "259006 EATING PLACES AND RESTAURANTS \n", + "203755 EATING PLACES AND RESTAURANTS \n", + "26167 Record Shops \n", + "183852 MISCELLANEOUS AND SPECIALTY RETAIL STORES \n", + "187398 BOOK STORES \n", + "122563 EATING PLACES AND RESTAURANTS \n", + "137080 EATING PLACES AND RESTAURANTS \n", + "137066 EATING PLACES AND RESTAURANTS \n", + "273523 EATING PLACES AND RESTAURANTS \n", + "350180 EATING PLACES AND RESTAURANTS \n", + "425708 EATING PLACES AND RESTAURANTS \n", + "18313 EATING PLACES AND RESTAURANTS \n", + "237004 EATING PLACES AND RESTAURANTS \n", + "46449 LODGING--HOTELS MOTELS AND RESORTS \n", + "295797 MISCELLANEOUS PERSONAL SERVICES--NOT ELSEWHERE... \n", + "107715 DEPARTMENT STORES \n", + "23811 TELECOMMUNICATION SERVICES \n", + "191876 TELECOMMUNICATION SERVICES \n", + "331310 TELECOMMUNICATION SERVICES \n", + "245107 TELECOMMUNICATION SERVICES \n", + "242249 TELECOMMUNICATION SERVICES \n", + "176456 TELECOMMUNICATION SERVICES \n", + "293176 TELECOMMUNICATION SERVICES \n", + "277107 TELECOMMUNICATION SERVICES \n", + "107861 TELECOMMUNICATION SERVICES \n", + "227374 TELECOMMUNICATION SERVICES \n", + "... ... \n", + "286707 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "150464 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "287566 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "195142 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "181341 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "399501 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "398900 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "147675 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "435168 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "414172 DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE... \n", + "74560 DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE... \n", + "141781 MISCELLANEOUS AND SPECIALTY RETAIL STORES \n", + "256724 MISCELLANEOUS AND SPECIALTY RETAIL STORES \n", + "285576 MISCELLANEOUS AND SPECIALTY RETAIL STORES \n", + "38888 MISCELLANEOUS AND SPECIALTY RETAIL STORES \n", + "12823 PROFESSIONAL SERVICES NOT ELSEWHERE CLASSIFIED \n", + "356968 DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS \n", + "377750 FUEL DEALERS--FUEL OIL WOOD COAL AND LIQ. PETR... \n", + "415473 FUEL DEALERS--FUEL OIL WOOD COAL AND LIQ. PETR... \n", + "438854 DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... \n", + "215934 COMBINATION CATALOG AND RETAIL MERCHANT \n", + "74879 COMBINATION CATALOG AND RETAIL MERCHANT \n", + "248605 COMBINATION CATALOG AND RETAIL MERCHANT \n", + "247481 MISCELLANEOUS AND SPECIALTY RETAIL STORES \n", + "433297 BOOK STORES \n", + "276256 COMPUTER SOFTWARE STORES \n", + "242936 COMPUTER SOFTWARE STORES \n", + "188107 BUSINESS SERVICES NOT ELSEWHERE CLASSIFIED \n", + "141288 DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS \n", + "141293 DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS \n", + "\n", + "[442184 rows x 10 columns]" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df2012.sort_values('vendor', ascending=True)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Perhaps we care about both vendor and last name." + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
agency_numberagency_namelast_namefirst_initialdescriptionamountvendortransaction_dateposted_dateMCC
5096224100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE$20.00BART-COLISEUM QPS11-Aug-1112-Aug-11LOCAL AND SUBURBAN COMMUTER PASS TRANS INCLUD...
34383424100REDLANDS COMMUNITY COLLEGEZWEIACHEREROOM CHARGES$140.00BEST WESTERN WESTERN INN14-Apr-1216-Apr-12BEST WESTERN
1513235000HISTORICAL SOCIETYZWEIACHERTGENERAL PURCHASE$2,540.00DRIVESAVERS INC1-Jul-114-Jul-11DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE...
34378724100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE$140.27GOLDEN CORRAL 240712-Apr-1213-Apr-12FAST FOOD RESTAURANTS
13095624100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE$415.00HAWAII INTL CONF INTERNET29-Sep-113-Oct-11SCHOOLS AND EDUCATIONAL SERVICES NOT ELSEWHERE...
16639724100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE($340.00)HAWAII INTL CONF INTERNET1-Nov-113-Nov-11SCHOOLS AND EDUCATIONAL SERVICES NOT ELSEWHERE...
34383024100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE$49.02LJS 3151213-Apr-1216-Apr-12FAST FOOD RESTAURANTS
34383124100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE$52.94LJS 3151213-Apr-1216-Apr-12FAST FOOD RESTAURANTS
34383324100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE($52.94)LJS 3151213-Apr-1216-Apr-12FAST FOOD RESTAURANTS
5108224100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE($16.99)MARRIOTT OAKLND CITY CNTR17-Aug-1118-Aug-11MARRIOTT
5109424100REDLANDS COMMUNITY COLLEGEZWEIACHEREROOM CHARGES$506.23MARRIOTT OAKLND CITY CNTR16-Aug-1117-Aug-11MARRIOTT
34383224100REDLANDS COMMUNITY COLLEGEZWEIACHEREGENERAL PURCHASE$29.25MCDONALD'S F458114-Apr-1216-Apr-12FAST FOOD RESTAURANTS
9246132000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$2,027.97ARNETT NEW HOLLAND2-Sep-115-Sep-11MISC. AUTOMOTIVE AIRCRAFT AND FARM EQUIPMENT D...
41980832000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$52.67ATW OF ELK CITY # 076-Jun-127-Jun-12MISCELLANEOUS AND SPECIALTY RETAIL STORES
13163632000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$31.98CHEYENNE LUMBER3-Oct-115-Oct-11LUMBER AND BUILDING MATERIALS STORES
41937332000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$134.64CHEYENNE LUMBER12-Jun-1214-Jun-12LUMBER AND BUILDING MATERIALS STORES
5169832000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$28.52LOCKE SUPPLY - WHC WOODWA4-Aug-118-Aug-11HARDWARE STORES
41951632000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$509.70LOCKE SUPPLY - WOODWARD13-Jun-1215-Jun-12HARDWARE STORES
23126732000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$26.34NORTHWEST BEARING & INDUS13-Jan-1216-Jan-12MISCELLANEOUS AND SPECIALTY RETAIL STORES
34470632000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$240.75ROLL GRAIN & FEED13-Apr-1216-Apr-12AGRICULTURAL COOPERATIVES
9243932000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$340.66SANDER SPORTING GOODS19-Sep-1121-Sep-11CAMPER RECREATIONAL AND UTILITY TRAILER DEALERS
16727932000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$239.97SEARS DEALER 36367-Nov-119-Nov-11DEPARTMENT STORES
30638632000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$2,037.19SOLAR POWER AND PUMP CO7-Mar-128-Mar-12PLUMBING AND HEATING EQUIPMENT AND SUPPLIES
41980932000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$310.00SOLAR POWER AND PUMP CO6-Jun-127-Jun-12PLUMBING AND HEATING EQUIPMENT AND SUPPLIES
30644132000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJNUZZLE ASSEMBLY1/4-2010 EA$24.51W W GRAINGER 91619-Mar-1221-Mar-12INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED
30644232000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJBUSHING1 X 3/4 IN SPIGOT EA|BUSHING1 1/4 X 3/4...$987.69W W GRAINGER 91619-Mar-1221-Mar-12INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED
5194332000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$118.94WOODWARD ACE HARDWARE29-Aug-1131-Aug-11HARDWARE STORES
19909432000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$91.98WOODWARD ACE HARDWARE7-Dec-119-Dec-11HARDWARE STORES
23126932000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$77.96WOODWARD ACE HOME CTR.13-Jan-1216-Jan-12HARDWARE STORES
26830732000DEPARTMENT OF WILDLIFE CONSERVATIONZURENDAJGENERAL PURCHASE$27.00WOODWARD ACE HOME CTR.27-Feb-1229-Feb-12HARDWARE STORES
.................................
1270126500DEPARTMENT OF EDUCATION265002GENERAL PURCHASE$17,654.47PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
9196126500DEPARTMENT OF EDUCATION265002GENERAL PURCHASE$12,265.27PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
97922500OKLAHOMA MILITARY DEPARTMENT25002GENERAL PURCHASE$1,932.41PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
886032500OKLAHOMA MILITARY DEPARTMENT25002GENERAL PURCHASE$512.59PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
41881324100REDLANDS COMMUNITY COLLEGE241002GENERAL PURCHASE$502.63LATE PAYMENT FEE25-Jun-1225-Jun-12OTHER FEES
23038924000EASTERN OKLA. STATE COLLEGE240002GENERAL PURCHASE($250.00)CREDIT LATE CHARGE FEE10-Nov-1126-Jan-12OTHER FEES
23039024000EASTERN OKLA. STATE COLLEGE240002GENERAL PURCHASE($0.75)CREDIT PURCHASE FINANCE C30-Nov-1126-Jan-12OTHER FEES
16627024000EASTERN OKLA. STATE COLLEGE240002GENERAL PURCHASE$250.00LATE PAYMENT FEE10-Nov-1110-Nov-11OTHER FEES
30506624000EASTERN OKLA. STATE COLLEGE240002GENERAL PURCHASE$423.49LATE PAYMENT FEE12-Mar-1212-Mar-12OTHER FEES
16631124000EASTERN OKLA. STATE COLLEGE240002GENERAL PURCHASE$0.75PURCHASE FINANCE CHARGE30-Nov-1130-Nov-11OTHER FEES
30507624000EASTERN OKLA. STATE COLLEGE240002GENERAL PURCHASE$1.54PURCHASE FINANCE CHARGE30-Mar-1230-Mar-12OTHER FEES
1261122000DISTRICT ATTORNEYS COUNCIL220002GENERAL PURCHASE$127.96PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
9145922000DISTRICT ATTORNEYS COUNCIL220002GENERAL PURCHASE$435.00PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
1638542200OKLAHOMA ABSTRACTORS BOARD22002GENERAL PURCHASE($0.05)CREDIT PURCHASE FINANCE C31-Oct-114-Nov-11OTHER FEES
884152200OKLAHOMA ABSTRACTORS BOARD22002GENERAL PURCHASE$1,690.23PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
1257221500BOARD OF DENTISTRY215002GENERAL PURCHASE$298.26PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
9139921500BOARD OF DENTISTRY215002GENERAL PURCHASE$115.66PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
1256920400J. M. DAVIS ARMS & HIST. MUSEUM204002GENERAL PURCHASE$4,538.31PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
9139120400J. M. DAVIS ARMS & HIST. MUSEUM204002GENERAL PURCHASE$2,285.94PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
1254719000COSMETOLOGY BOARD190001GENERAL PURCHASE$2,645.92PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
9138019000COSMETOLOGY BOARD190001GENERAL PURCHASE$1,270.00PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
30478516000DEPARTMENT OF COMMERCE160001GENERAL PURCHASE($0.10)ADJUSTMENT31-Jan-1230-Mar-12OTHER FEES
34333716000DEPARTMENT OF COMMERCE160001GENERAL PURCHASE$0.20BALANCE ADJUSTMENT5-Apr-125-Apr-12OTHER FEES
23023916000DEPARTMENT OF COMMERCE160001GENERAL PURCHASE$5,461.54PAYMENT ADJUSTMENT12-Jan-1231-Jan-12OTHER FEES
26683116000DEPARTMENT OF COMMERCE160001GENERAL PURCHASE$9,262.49PAYMENT ADJUSTMENT13-Feb-1221-Feb-12OTHER FEES
1239814500ST. BD. OF CHIROPRACTIC EXAM.145001GENERAL PURCHASE$1,157,092.14PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
9121414500ST. BD. OF CHIROPRACTIC EXAM.145001GENERAL PURCHASE$280.17PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
1228613100DEPARTMENT OF CORRECTIONS131001GENERAL PURCHASE$2,619.29PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
1081912500DEPARTMENT OF MINES125001GENERAL PURCHASE$10,815.38PAYMENT ADJUSTMENT13-Jul-1127-Jul-11OTHER FEES
8952412500DEPARTMENT OF MINES125001GENERAL PURCHASE$1,565.14PAYMENT ADJUSTMENT11-Aug-117-Sep-11OTHER FEES
\n", + "

442184 rows × 10 columns

\n", + "
" + ], + "text/plain": [ + " agency_number agency_name last_name \\\n", + "50962 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "343834 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "15132 35000 HISTORICAL SOCIETY ZWEIACHER \n", + "343787 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "130956 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "166397 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "343830 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "343831 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "343833 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "51082 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "51094 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "343832 24100 REDLANDS COMMUNITY COLLEGE ZWEIACHER \n", + "92461 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "419808 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "131636 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "419373 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "51698 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "419516 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "231267 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "344706 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "92439 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "167279 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "306386 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "419809 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "306441 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "306442 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "51943 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "199094 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "231269 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "268307 32000 DEPARTMENT OF WILDLIFE CONSERVATION ZURENDA \n", + "... ... ... ... \n", + "12701 26500 DEPARTMENT OF EDUCATION 26500 \n", + "91961 26500 DEPARTMENT OF EDUCATION 26500 \n", + "9792 2500 OKLAHOMA MILITARY DEPARTMENT 2500 \n", + "88603 2500 OKLAHOMA MILITARY DEPARTMENT 2500 \n", + "418813 24100 REDLANDS COMMUNITY COLLEGE 24100 \n", + "230389 24000 EASTERN OKLA. STATE COLLEGE 24000 \n", + "230390 24000 EASTERN OKLA. STATE COLLEGE 24000 \n", + "166270 24000 EASTERN OKLA. STATE COLLEGE 24000 \n", + "305066 24000 EASTERN OKLA. STATE COLLEGE 24000 \n", + "166311 24000 EASTERN OKLA. STATE COLLEGE 24000 \n", + "305076 24000 EASTERN OKLA. STATE COLLEGE 24000 \n", + "12611 22000 DISTRICT ATTORNEYS COUNCIL 22000 \n", + "91459 22000 DISTRICT ATTORNEYS COUNCIL 22000 \n", + "163854 2200 OKLAHOMA ABSTRACTORS BOARD 2200 \n", + "88415 2200 OKLAHOMA ABSTRACTORS BOARD 2200 \n", + "12572 21500 BOARD OF DENTISTRY 21500 \n", + "91399 21500 BOARD OF DENTISTRY 21500 \n", + "12569 20400 J. M. DAVIS ARMS & HIST. MUSEUM 20400 \n", + "91391 20400 J. M. DAVIS ARMS & HIST. MUSEUM 20400 \n", + "12547 19000 COSMETOLOGY BOARD 19000 \n", + "91380 19000 COSMETOLOGY BOARD 19000 \n", + "304785 16000 DEPARTMENT OF COMMERCE 16000 \n", + "343337 16000 DEPARTMENT OF COMMERCE 16000 \n", + "230239 16000 DEPARTMENT OF COMMERCE 16000 \n", + "266831 16000 DEPARTMENT OF COMMERCE 16000 \n", + "12398 14500 ST. BD. OF CHIROPRACTIC EXAM. 14500 \n", + "91214 14500 ST. BD. OF CHIROPRACTIC EXAM. 14500 \n", + "12286 13100 DEPARTMENT OF CORRECTIONS 13100 \n", + "10819 12500 DEPARTMENT OF MINES 12500 \n", + "89524 12500 DEPARTMENT OF MINES 12500 \n", + "\n", + " first_initial description \\\n", + "50962 E GENERAL PURCHASE \n", + "343834 E ROOM CHARGES \n", + "15132 T GENERAL PURCHASE \n", + "343787 E GENERAL PURCHASE \n", + "130956 E GENERAL PURCHASE \n", + "166397 E GENERAL PURCHASE \n", + "343830 E GENERAL PURCHASE \n", + "343831 E GENERAL PURCHASE \n", + "343833 E GENERAL PURCHASE \n", + "51082 E GENERAL PURCHASE \n", + "51094 E ROOM CHARGES \n", + "343832 E GENERAL PURCHASE \n", + "92461 J GENERAL PURCHASE \n", + "419808 J GENERAL PURCHASE \n", + "131636 J GENERAL PURCHASE \n", + "419373 J GENERAL PURCHASE \n", + "51698 J GENERAL PURCHASE \n", + "419516 J GENERAL PURCHASE \n", + "231267 J GENERAL PURCHASE \n", + "344706 J GENERAL PURCHASE \n", + "92439 J GENERAL PURCHASE \n", + "167279 J GENERAL PURCHASE \n", + "306386 J GENERAL PURCHASE \n", + "419809 J GENERAL PURCHASE \n", + "306441 J NUZZLE ASSEMBLY1/4-2010 EA \n", + "306442 J BUSHING1 X 3/4 IN SPIGOT EA|BUSHING1 1/4 X 3/4... \n", + "51943 J GENERAL PURCHASE \n", + "199094 J GENERAL PURCHASE \n", + "231269 J GENERAL PURCHASE \n", + "268307 J GENERAL PURCHASE \n", + "... ... ... \n", + "12701 2 GENERAL PURCHASE \n", + "91961 2 GENERAL PURCHASE \n", + "9792 2 GENERAL PURCHASE \n", + "88603 2 GENERAL PURCHASE \n", + "418813 2 GENERAL PURCHASE \n", + "230389 2 GENERAL PURCHASE \n", + "230390 2 GENERAL PURCHASE \n", + "166270 2 GENERAL PURCHASE \n", + "305066 2 GENERAL PURCHASE \n", + "166311 2 GENERAL PURCHASE \n", + "305076 2 GENERAL PURCHASE \n", + "12611 2 GENERAL PURCHASE \n", + "91459 2 GENERAL PURCHASE \n", + "163854 2 GENERAL PURCHASE \n", + "88415 2 GENERAL PURCHASE \n", + "12572 2 GENERAL PURCHASE \n", + "91399 2 GENERAL PURCHASE \n", + "12569 2 GENERAL PURCHASE \n", + "91391 2 GENERAL PURCHASE \n", + "12547 1 GENERAL PURCHASE \n", + "91380 1 GENERAL PURCHASE \n", + "304785 1 GENERAL PURCHASE \n", + "343337 1 GENERAL PURCHASE \n", + "230239 1 GENERAL PURCHASE \n", + "266831 1 GENERAL PURCHASE \n", + "12398 1 GENERAL PURCHASE \n", + "91214 1 GENERAL PURCHASE \n", + "12286 1 GENERAL PURCHASE \n", + "10819 1 GENERAL PURCHASE \n", + "89524 1 GENERAL PURCHASE \n", + "\n", + " amount vendor transaction_date \\\n", + "50962 $20.00 BART-COLISEUM QPS 11-Aug-11 \n", + "343834 $140.00 BEST WESTERN WESTERN INN 14-Apr-12 \n", + "15132 $2,540.00 DRIVESAVERS INC 1-Jul-11 \n", + "343787 $140.27 GOLDEN CORRAL 2407 12-Apr-12 \n", + "130956 $415.00 HAWAII INTL CONF INTERNET 29-Sep-11 \n", + "166397 ($340.00) HAWAII INTL CONF INTERNET 1-Nov-11 \n", + "343830 $49.02 LJS 31512 13-Apr-12 \n", + "343831 $52.94 LJS 31512 13-Apr-12 \n", + "343833 ($52.94) LJS 31512 13-Apr-12 \n", + "51082 ($16.99) MARRIOTT OAKLND CITY CNTR 17-Aug-11 \n", + "51094 $506.23 MARRIOTT OAKLND CITY CNTR 16-Aug-11 \n", + "343832 $29.25 MCDONALD'S F4581 14-Apr-12 \n", + "92461 $2,027.97 ARNETT NEW HOLLAND 2-Sep-11 \n", + "419808 $52.67 ATW OF ELK CITY # 07 6-Jun-12 \n", + "131636 $31.98 CHEYENNE LUMBER 3-Oct-11 \n", + "419373 $134.64 CHEYENNE LUMBER 12-Jun-12 \n", + "51698 $28.52 LOCKE SUPPLY - WHC WOODWA 4-Aug-11 \n", + "419516 $509.70 LOCKE SUPPLY - WOODWARD 13-Jun-12 \n", + "231267 $26.34 NORTHWEST BEARING & INDUS 13-Jan-12 \n", + "344706 $240.75 ROLL GRAIN & FEED 13-Apr-12 \n", + "92439 $340.66 SANDER SPORTING GOODS 19-Sep-11 \n", + "167279 $239.97 SEARS DEALER 3636 7-Nov-11 \n", + "306386 $2,037.19 SOLAR POWER AND PUMP CO 7-Mar-12 \n", + "419809 $310.00 SOLAR POWER AND PUMP CO 6-Jun-12 \n", + "306441 $24.51 W W GRAINGER 916 19-Mar-12 \n", + "306442 $987.69 W W GRAINGER 916 19-Mar-12 \n", + "51943 $118.94 WOODWARD ACE HARDWARE 29-Aug-11 \n", + "199094 $91.98 WOODWARD ACE HARDWARE 7-Dec-11 \n", + "231269 $77.96 WOODWARD ACE HOME CTR. 13-Jan-12 \n", + "268307 $27.00 WOODWARD ACE HOME CTR. 27-Feb-12 \n", + "... ... ... ... \n", + "12701 $17,654.47 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "91961 $12,265.27 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "9792 $1,932.41 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "88603 $512.59 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "418813 $502.63 LATE PAYMENT FEE 25-Jun-12 \n", + "230389 ($250.00) CREDIT LATE CHARGE FEE 10-Nov-11 \n", + "230390 ($0.75) CREDIT PURCHASE FINANCE C 30-Nov-11 \n", + "166270 $250.00 LATE PAYMENT FEE 10-Nov-11 \n", + "305066 $423.49 LATE PAYMENT FEE 12-Mar-12 \n", + "166311 $0.75 PURCHASE FINANCE CHARGE 30-Nov-11 \n", + "305076 $1.54 PURCHASE FINANCE CHARGE 30-Mar-12 \n", + "12611 $127.96 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "91459 $435.00 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "163854 ($0.05) CREDIT PURCHASE FINANCE C 31-Oct-11 \n", + "88415 $1,690.23 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "12572 $298.26 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "91399 $115.66 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "12569 $4,538.31 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "91391 $2,285.94 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "12547 $2,645.92 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "91380 $1,270.00 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "304785 ($0.10) ADJUSTMENT 31-Jan-12 \n", + "343337 $0.20 BALANCE ADJUSTMENT 5-Apr-12 \n", + "230239 $5,461.54 PAYMENT ADJUSTMENT 12-Jan-12 \n", + "266831 $9,262.49 PAYMENT ADJUSTMENT 13-Feb-12 \n", + "12398 $1,157,092.14 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "91214 $280.17 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "12286 $2,619.29 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "10819 $10,815.38 PAYMENT ADJUSTMENT 13-Jul-11 \n", + "89524 $1,565.14 PAYMENT ADJUSTMENT 11-Aug-11 \n", + "\n", + " posted_date MCC \n", + "50962 12-Aug-11 LOCAL AND SUBURBAN COMMUTER PASS TRANS INCLUD... \n", + "343834 16-Apr-12 BEST WESTERN \n", + "15132 4-Jul-11 DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE... \n", + "343787 13-Apr-12 FAST FOOD RESTAURANTS \n", + "130956 3-Oct-11 SCHOOLS AND EDUCATIONAL SERVICES NOT ELSEWHERE... \n", + "166397 3-Nov-11 SCHOOLS AND EDUCATIONAL SERVICES NOT ELSEWHERE... \n", + "343830 16-Apr-12 FAST FOOD RESTAURANTS \n", + "343831 16-Apr-12 FAST FOOD RESTAURANTS \n", + "343833 16-Apr-12 FAST FOOD RESTAURANTS \n", + "51082 18-Aug-11 MARRIOTT \n", + "51094 17-Aug-11 MARRIOTT \n", + "343832 16-Apr-12 FAST FOOD RESTAURANTS \n", + "92461 5-Sep-11 MISC. AUTOMOTIVE AIRCRAFT AND FARM EQUIPMENT D... \n", + "419808 7-Jun-12 MISCELLANEOUS AND SPECIALTY RETAIL STORES \n", + "131636 5-Oct-11 LUMBER AND BUILDING MATERIALS STORES \n", + "419373 14-Jun-12 LUMBER AND BUILDING MATERIALS STORES \n", + "51698 8-Aug-11 HARDWARE STORES \n", + "419516 15-Jun-12 HARDWARE STORES \n", + "231267 16-Jan-12 MISCELLANEOUS AND SPECIALTY RETAIL STORES \n", + "344706 16-Apr-12 AGRICULTURAL COOPERATIVES \n", + "92439 21-Sep-11 CAMPER RECREATIONAL AND UTILITY TRAILER DEALERS \n", + "167279 9-Nov-11 DEPARTMENT STORES \n", + "306386 8-Mar-12 PLUMBING AND HEATING EQUIPMENT AND SUPPLIES \n", + "419809 7-Jun-12 PLUMBING AND HEATING EQUIPMENT AND SUPPLIES \n", + "306441 21-Mar-12 INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED \n", + "306442 21-Mar-12 INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED \n", + "51943 31-Aug-11 HARDWARE STORES \n", + "199094 9-Dec-11 HARDWARE STORES \n", + "231269 16-Jan-12 HARDWARE STORES \n", + "268307 29-Feb-12 HARDWARE STORES \n", + "... ... ... \n", + "12701 27-Jul-11 OTHER FEES \n", + "91961 7-Sep-11 OTHER FEES \n", + "9792 27-Jul-11 OTHER FEES \n", + "88603 7-Sep-11 OTHER FEES \n", + "418813 25-Jun-12 OTHER FEES \n", + "230389 26-Jan-12 OTHER FEES \n", + "230390 26-Jan-12 OTHER FEES \n", + "166270 10-Nov-11 OTHER FEES \n", + "305066 12-Mar-12 OTHER FEES \n", + "166311 30-Nov-11 OTHER FEES \n", + "305076 30-Mar-12 OTHER FEES \n", + "12611 27-Jul-11 OTHER FEES \n", + "91459 7-Sep-11 OTHER FEES \n", + "163854 4-Nov-11 OTHER FEES \n", + "88415 7-Sep-11 OTHER FEES \n", + "12572 27-Jul-11 OTHER FEES \n", + "91399 7-Sep-11 OTHER FEES \n", + "12569 27-Jul-11 OTHER FEES \n", + "91391 7-Sep-11 OTHER FEES \n", + "12547 27-Jul-11 OTHER FEES \n", + "91380 7-Sep-11 OTHER FEES \n", + "304785 30-Mar-12 OTHER FEES \n", + "343337 5-Apr-12 OTHER FEES \n", + "230239 31-Jan-12 OTHER FEES \n", + "266831 21-Feb-12 OTHER FEES \n", + "12398 27-Jul-11 OTHER FEES \n", + "91214 7-Sep-11 OTHER FEES \n", + "12286 27-Jul-11 OTHER FEES \n", + "10819 27-Jul-11 OTHER FEES \n", + "89524 7-Sep-11 OTHER FEES \n", + "\n", + "[442184 rows x 10 columns]" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df2012.sort_values(['last_name', 'vendor'], ascending=[False, True])" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Grouping data and summary statistics\n", + "Let's look at subsets of data and get some summary statistics by group. There are a lot of ways to do this, including subsetting the data into seperate dataframes, as we did above. However, let's use a more efficient tool, `groupby`. Let me first pull in a data set that has the right dtypes, so that the amounts look right." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Let's say we want to look at how many transactions happen for OSU by vendor.

\n", + "First, let's group the data together by vendor. There is nothing to see here, since we have just told the data how to group. What we have is a DataFrameGroupBy object. You can think of that as instructions on how to group, but without instructions on how to display values." + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "year_df = df2012.groupby('vendor')\n", + "year_df" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Now, let's tell it to do an operation on the groups using the agg function." + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
vendor
vendor
# 11 CITY BITES2
# 17 CITY BITES1
# 21 CITY BITES2
# 25 CITY BITES1
#08 VS 3231692659941
#1 PARTY SUPPLIES1
#21 VS1
#41 BRIO COUNTRY CLUB1
#44 BRAVO| MEMORIAL SQUA7
#464 RADISSON HOTEL CENTR1
(SA)HANGUKJEUNGGYONHAGHOI1
000 DILLARD'S INC.1
003 CENTURYLINK MY ACCOUN27
004 CENTURYLINK IVR11
0187 CED4
0280 OKLAHOMA FAIR2
040 CODE REVISERS OFFICE2
0410 AMERICAN16
084-SPOTLIGHT 145
1 800 621 64273
1 800 869 42631
1 800 RADIATOR AND AC OF4
1 800 RADIATOR OKC1
1 CART COM1
1 STOP SIGNS1
1 WORLD GLOBES AND MAPS1
1 WORLD SARONGS2
1-800 CONFERENCE3
1-800-DOORBELL-LORD HEN2
10 8 VIDEO1
......
pss_2025 INV 728986611
pss_2025 INV 729292081
pss_2025 INV 729794301
pss_2025 INV 730096781
pss_2025 INV 730470951
pss_2025 INV 734556271
pss_2025 INV 814305181
pss_2025 INV 817230101
pss_2025 INV 817379271
pss_2025 INV 820638191
pss_2025 INV 820644411
pss_2025 INV 822830351
pss_2025 INV 826074061
pss_2025 INV 827559721
pss_2025 INV 828592861
pss_2025 INV MULTIPLE36
robotis-shop-en.com1
soilsleuth@aol.com1
value plastics inc3
vet imaging1
wmill.com ResponseOmatic1
www.anastasiadate.com1
www.dumpster.com2
www.favoriteplus.com1
www.karger.ch4
www.mohr.de1
www.realtimesoft.com2
www.testking.com1
zombaio.com C190426131861
zombaio.com C381781131861
\n", + "

92427 rows × 1 columns

\n", + "
" + ], + "text/plain": [ + " vendor\n", + "vendor \n", + "# 11 CITY BITES 2\n", + "# 17 CITY BITES 1\n", + "# 21 CITY BITES 2\n", + "# 25 CITY BITES 1\n", + "#08 VS 323169265994 1\n", + "#1 PARTY SUPPLIES 1\n", + "#21 VS 1\n", + "#41 BRIO COUNTRY CLUB 1\n", + "#44 BRAVO| MEMORIAL SQUA 7\n", + "#464 RADISSON HOTEL CENTR 1\n", + "(SA)HANGUKJEUNGGYONHAGHOI 1\n", + "000 DILLARD'S INC. 1\n", + "003 CENTURYLINK MY ACCOUN 27\n", + "004 CENTURYLINK IVR 11\n", + "0187 CED 4\n", + "0280 OKLAHOMA FAIR 2\n", + "040 CODE REVISERS OFFICE 2\n", + "0410 AMERICAN 16\n", + "084-SPOTLIGHT 14 5\n", + "1 800 621 6427 3\n", + "1 800 869 4263 1\n", + "1 800 RADIATOR AND AC OF 4\n", + "1 800 RADIATOR OKC 1\n", + "1 CART COM 1\n", + "1 STOP SIGNS 1\n", + "1 WORLD GLOBES AND MAPS 1\n", + "1 WORLD SARONGS 2\n", + "1-800 CONFERENCE 3\n", + "1-800-DOORBELL-LORD HEN 2\n", + "10 8 VIDEO 1\n", + "... ...\n", + "pss_2025 INV 72898661 1\n", + "pss_2025 INV 72929208 1\n", + "pss_2025 INV 72979430 1\n", + "pss_2025 INV 73009678 1\n", + "pss_2025 INV 73047095 1\n", + "pss_2025 INV 73455627 1\n", + "pss_2025 INV 81430518 1\n", + "pss_2025 INV 81723010 1\n", + "pss_2025 INV 81737927 1\n", + "pss_2025 INV 82063819 1\n", + "pss_2025 INV 82064441 1\n", + "pss_2025 INV 82283035 1\n", + "pss_2025 INV 82607406 1\n", + "pss_2025 INV 82755972 1\n", + "pss_2025 INV 82859286 1\n", + "pss_2025 INV MULTIPLE 36\n", + "robotis-shop-en.com 1\n", + "soilsleuth@aol.com 1\n", + "value plastics inc 3\n", + "vet imaging 1\n", + "wmill.com ResponseOmatic 1\n", + "www.anastasiadate.com 1\n", + "www.dumpster.com 2\n", + "www.favoriteplus.com 1\n", + "www.karger.ch 4\n", + "www.mohr.de 1\n", + "www.realtimesoft.com 2\n", + "www.testking.com 1\n", + "zombaio.com C19042613186 1\n", + "zombaio.com C38178113186 1\n", + "\n", + "[92427 rows x 1 columns]" + ] + }, + "execution_count": 23, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "year_df.agg({'vendor': 'count'})" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "We could do this all at once, and in multiple ways. The last one is a built-in function that you might find convenient." + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Staples Contra00710004 12542\n", + "WM SUPERCENTER 9844\n", + "AMAZON MKTPLACE PMTS 9413\n", + "Amazon.com 8248\n", + "WW GRAINGER 7018\n", + "VWR INTERNATIONAL INC 5097\n", + "W W GRAINGER 916 4999\n", + "LOWES #00241 4460\n", + "BILL WARREN OFFICE PRODUC 3369\n", + "DMI DELL HIGHER EDUC 3218\n", + "STAPLES 00105288 2821\n", + "FISHER SCI HUS 2659\n", + "FASTENAL COMPANY01 2522\n", + "SIGMA ALDRICH US 2491\n", + "MCKESSON MEDICAL SUPPLY 2071\n", + "AT&T DATA 1753\n", + "AIRGAS MID SOUTH 1646\n", + "APL APPLE ONLINE STORE 1630\n", + "EUREKA WATER COMPANY 1586\n", + "XPEDX-INTL PAPER 1558\n", + "WWW.NEWEGG.COM 1529\n", + "DELL MARKETING L.P. ROUND 1497\n", + "AIRGAS CENTRAL 1488\n", + "LOWES #01165 1488\n", + "B&C BUSINESS PRODUCTS 1422\n", + "GEXPRO 1384\n", + "QUILL CORPORATION 1380\n", + "THE HOME DEPOT 3906 1321\n", + "ATT BUS PHONE PMT 1314\n", + "DMI DELL K-12/GOVT 1208\n", + " ... \n", + "PAYPAL OKLAHOMAATH 1\n", + "BEST WESTERN HOTELS MAIN 1\n", + "GALLAGHER BENEFIT S 1\n", + "SOUTHWESTAIR5262433465974 1\n", + "AGENT FEE 8900547864906 1\n", + "AMERICAN AI 0018665813413 1\n", + "INVITROGEN 21012440 1\n", + "DELTA AIR 0068743291432 1\n", + "AGENT FEE 8900549285888 1\n", + "SOUTHWESTAIR5262428027628 1\n", + "AGENT FEE 8900572644721 1\n", + "JOURNYHSE DINGELDEIN 1\n", + "AGENT FEE 8900569946169 1\n", + "FEDEX 794995719461 1\n", + "OFFICEMAX CT IN#021299 1\n", + "AMERICAN AI 0017059080894 1\n", + "NAMMAR AGCY 0001663130630 1\n", + "FEDEX 522882879440 1\n", + "FEDEX 798357097877 1\n", + "JOURNYHSE BIGGERSA 1\n", + "STAPLS9220851295000 1\n", + "FEDEX 793587755946 1\n", + "OFFICEMAX CT IN#823856 1\n", + "AGENT FEE 8900575834201 1\n", + "ACT GARTNER FALL SYMPO 1\n", + "FEDEX 793275373081 1\n", + "DIRECT ADVANTAGE 1\n", + "AGENT FEE 8900571445118 1\n", + "FEDEX 899702595702 1\n", + "DELTA AIR 0068665813273 1\n", + "Name: vendor, dtype: int64" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#df2012.groupby('vendor').agg({'vendor': 'count'})\n", + "#df2012.groupby('vendor').count()\n", + "#df2012.groupby('vendor')['agency_number'].count()\n", + "df2012.vendor.value_counts()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Finally, let's look at both transaction data and vendor, and look at the count." + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
vendor
transaction_datevendor
1-Apr-1259 DINER1
ACCESSLINE PHONE SVC1
AGENT FEE 89005733452261
ALFALFA ELECTRIC COOPERA1
ALL STAR AIRPORT EXPRESS1
AMAZON MKTPLACE PMTS8
AMERICAN AI 00102676468611
AMERICAN AI 00102676478961
AMERICAN AI 00102676479821
AMERICAN AI 00102676480581
AMERICAN AI 00102676481201
AMERICAN AI 00102676482251
AMERICAN AI 00102676483021
AMERICAN AI 00102676484091
AMERICAN AI 00102676484761
AMERICAN AI 00170482714821
AMPCO PARKING OKLAHOMA CI1
APL APPLE ITUNES STORE3
APL APPLE ONLINE STORE8
ARC SERVICES/TRAINING1
AT LINK SERVICES1
AT&T DATA5
ATT POS PARTNER3
ATTM 827927751 NBI1
ATTM 827978547 NBI1
AUTOST AREZZO/MASSAROSA1
AUTOST LUCCA OVEST/AREZZO1
AUTOST ROMA NORD/AREZZO1
AV AVNET ELECTRONICS1
Amazon.com10
.........
9-Sep-11WALMART.COM1
WATER STORE INC1
WAYEST SAFETY INC2
WEATHERFORD ACE HOME CTR1
WEATHERLY RCA1
WEBSITEHOSTINGBILL.COM1
WESTERN DIGITAL CORPORAT1
WESTERN EQUIPMENT ALVA1
WESTLAKE HARDWARE1
WHITTIER MAILING PRODUCTS1
WHITTON SUPPLY CO2
WILCOXON RESEARCH INC1
WILDFLOWERMEADOWS1
WINFIELD SOLUTIONS OCITY1
WINKLE'S PLUMBING & ELECT1
WKH LIPPINCOTT WMS/WIL1
WM EZPAY1
WM SUPERCENTER56
WOLVERINE BRASS INC1
WOODWARD HOLIDAY INN EXP2
WOSC BUSINESS OFFICE1
WSC Windstream Pmt&Fee5
WSC Windstream PmtFee2
WSG WILSON SPTG GDS2
WW GRAINGER18
WWW.NEWEGG.COM8
XPEDX-INTL PAPER10
Y BAR RENTAL & EQUIPMENT1
YELLOW HOUSE SAND SPRINGS2
YODER BROTHERS1
\n", + "

257550 rows × 1 columns

\n", + "
" + ], + "text/plain": [ + " vendor\n", + "transaction_date vendor \n", + "1-Apr-12 59 DINER 1\n", + " ACCESSLINE PHONE SVC 1\n", + " AGENT FEE 8900573345226 1\n", + " ALFALFA ELECTRIC COOPERA 1\n", + " ALL STAR AIRPORT EXPRESS 1\n", + " AMAZON MKTPLACE PMTS 8\n", + " AMERICAN AI 0010267646861 1\n", + " AMERICAN AI 0010267647896 1\n", + " AMERICAN AI 0010267647982 1\n", + " AMERICAN AI 0010267648058 1\n", + " AMERICAN AI 0010267648120 1\n", + " AMERICAN AI 0010267648225 1\n", + " AMERICAN AI 0010267648302 1\n", + " AMERICAN AI 0010267648409 1\n", + " AMERICAN AI 0010267648476 1\n", + " AMERICAN AI 0017048271482 1\n", + " AMPCO PARKING OKLAHOMA CI 1\n", + " APL APPLE ITUNES STORE 3\n", + " APL APPLE ONLINE STORE 8\n", + " ARC SERVICES/TRAINING 1\n", + " AT LINK SERVICES 1\n", + " AT&T DATA 5\n", + " ATT POS PARTNER 3\n", + " ATTM 827927751 NBI 1\n", + " ATTM 827978547 NBI 1\n", + " AUTOST AREZZO/MASSAROSA 1\n", + " AUTOST LUCCA OVEST/AREZZO 1\n", + " AUTOST ROMA NORD/AREZZO 1\n", + " AV AVNET ELECTRONICS 1\n", + " Amazon.com 10\n", + "... ...\n", + "9-Sep-11 WALMART.COM 1\n", + " WATER STORE INC 1\n", + " WAYEST SAFETY INC 2\n", + " WEATHERFORD ACE HOME CTR 1\n", + " WEATHERLY RCA 1\n", + " WEBSITEHOSTINGBILL.COM 1\n", + " WESTERN DIGITAL CORPORAT 1\n", + " WESTERN EQUIPMENT ALVA 1\n", + " WESTLAKE HARDWARE 1\n", + " WHITTIER MAILING PRODUCTS 1\n", + " WHITTON SUPPLY CO 2\n", + " WILCOXON RESEARCH INC 1\n", + " WILDFLOWERMEADOWS 1\n", + " WINFIELD SOLUTIONS OCITY 1\n", + " WINKLE'S PLUMBING & ELECT 1\n", + " WKH LIPPINCOTT WMS/WIL 1\n", + " WM EZPAY 1\n", + " WM SUPERCENTER 56\n", + " WOLVERINE BRASS INC 1\n", + " WOODWARD HOLIDAY INN EXP 2\n", + " WOSC BUSINESS OFFICE 1\n", + " WSC Windstream Pmt&Fee 5\n", + " WSC Windstream PmtFee 2\n", + " WSG WILSON SPTG GDS 2\n", + " WW GRAINGER 18\n", + " WWW.NEWEGG.COM 8\n", + " XPEDX-INTL PAPER 10\n", + " Y BAR RENTAL & EQUIPMENT 1\n", + " YELLOW HOUSE SAND SPRINGS 2\n", + " YODER BROTHERS 1\n", + "\n", + "[257550 rows x 1 columns]" + ] + }, + "execution_count": 25, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df2012.groupby(['transaction_date', 'vendor']).agg({'vendor': 'count'})" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.1" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +}