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",
+ " Agency Number | \n",
+ " Agency Name | \n",
+ " Cardholder Last Name | \n",
+ " Cardholder First Initial | \n",
+ " Description | \n",
+ " Amount | \n",
+ " Vendor | \n",
+ " Transaction Date | \n",
+ " Posted Date | \n",
+ " Merchant Category Code (MCC) | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $60.07 | \n",
+ " WM SUPERCENTER | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $41.29 | \n",
+ " WM SUPERCENTER | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 2 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BEROUSEK | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " ($180.00) | \n",
+ " A.C.E. SUPPLY & SERVICE | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " STATIONERY OFFICE SUPPLIES PRINTING AND WRIT... | \n",
+ "
\n",
+ " \n",
+ " 3 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " FOCHT | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $9.36 | \n",
+ " NAPA AUTO PARTS | \n",
+ " 29-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " AUTOMOTIVE PARTS AND ACCESSORIES STORES | \n",
+ "
\n",
+ " \n",
+ " 4 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " FOCHT | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $16.86 | \n",
+ " NAPA AUTO PARTS | \n",
+ " 29-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " AUTOMOTIVE PARTS AND ACCESSORIES STORES | \n",
+ "
\n",
+ " \n",
+ "
\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",
+ " agency_number | \n",
+ " agency_name | \n",
+ " last_name | \n",
+ " first_initial | \n",
+ " description | \n",
+ " amount | \n",
+ " vendor | \n",
+ " transaction_date | \n",
+ " posted_date | \n",
+ " MCC | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $60.07 | \n",
+ " WM SUPERCENTER | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $41.29 | \n",
+ " WM SUPERCENTER | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 2 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BEROUSEK | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " ($180.00) | \n",
+ " A.C.E. SUPPLY & SERVICE | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " STATIONERY OFFICE SUPPLIES PRINTING AND WRIT... | \n",
+ "
\n",
+ " \n",
+ " 3 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " FOCHT | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $9.36 | \n",
+ " NAPA AUTO PARTS | \n",
+ " 29-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " AUTOMOTIVE PARTS AND ACCESSORIES STORES | \n",
+ "
\n",
+ " \n",
+ " 4 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " FOCHT | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $16.86 | \n",
+ " NAPA AUTO PARTS | \n",
+ " 29-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " AUTOMOTIVE PARTS AND ACCESSORIES STORES | \n",
+ "
\n",
+ " \n",
+ "
\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",
+ " agency_number | \n",
+ " agency_name | \n",
+ " last_name | \n",
+ " first_initial | \n",
+ " description | \n",
+ " amount | \n",
+ " vendor | \n",
+ " transaction_date | \n",
+ " posted_date | \n",
+ " MCC | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $60.07 | \n",
+ " WM SUPERCENTER | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $41.29 | \n",
+ " WM SUPERCENTER | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 644 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $136.43 | \n",
+ " CREST FOODS #5 | \n",
+ " 7-Jul-11 | \n",
+ " 11-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 645 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $10.00 | \n",
+ " DOLRTREE 3803 00038034 | \n",
+ " 7-Jul-11 | \n",
+ " 11-Jul-11 | \n",
+ " DISCOUNT STORES | \n",
+ "
\n",
+ " \n",
+ " 646 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " ($13.07) | \n",
+ " WM SUPERCENTER | \n",
+ " 7-Jul-11 | \n",
+ " 11-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 647 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " SERVICE/HANDLING/FUEL SURC EA|BTLBULKDOT-2ENMC... | \n",
+ " $460.30 | \n",
+ " VWR INTERNATIONAL INC | \n",
+ " 8-Jul-11 | \n",
+ " 11-Jul-11 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 925 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $13.07 | \n",
+ " WM SUPERCENTER | \n",
+ " 7-Jul-11 | \n",
+ " 8-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 926 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $11.24 | \n",
+ " DUNN'S FOOD CENTER | \n",
+ " 6-Jul-11 | \n",
+ " 8-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 927 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $12.06 | \n",
+ " WM SUPERCENTER | \n",
+ " 7-Jul-11 | \n",
+ " 8-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 2578 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $144.56 | \n",
+ " WM SUPERCENTER | \n",
+ " 12-Jul-11 | \n",
+ " 13-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 2579 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " HARDWARE CLOTH HEIGHT 36 EA | \n",
+ " $75.02 | \n",
+ " W W GRAINGER 916 | \n",
+ " 11-Jul-11 | \n",
+ " 13-Jul-11 | \n",
+ " INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 2580 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " TAPESELF FUSINGSILICONE EA | \n",
+ " $9.65 | \n",
+ " W W GRAINGER 916 | \n",
+ " 12-Jul-11 | \n",
+ " 13-Jul-11 | \n",
+ " INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 3184 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " P | \n",
+ " SAND 40-100 MESH 5K EA | \n",
+ " $201.03 | \n",
+ " FISHER SCI HUS | \n",
+ " 14-Jul-11 | \n",
+ " 15-Jul-11 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 3185 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " P | \n",
+ " 3M 3 EXTRA WIDE DUCT TAPE EA | \n",
+ " $19.96 | \n",
+ " LOWES #00241 | \n",
+ " 14-Jul-11 | \n",
+ " 15-Jul-11 | \n",
+ " HOME SUPPLY WAREHOUSE STORES | \n",
+ "
\n",
+ " \n",
+ " 3279 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " 4 PVC FEMALE ADAPTER 101 PCS|4 PVC CLEANOUT P... | \n",
+ " $57.56 | \n",
+ " LOWES #00241 | \n",
+ " 11-Jul-11 | \n",
+ " 12-Jul-11 | \n",
+ " HOME SUPPLY WAREHOUSE STORES | \n",
+ "
\n",
+ " \n",
+ " 4583 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $274.78 | \n",
+ " JIMCOLEMAN LTD #2 | \n",
+ " 12-Jul-11 | \n",
+ " 14-Jul-11 | \n",
+ " NON-DURABLE GOODS NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 4584 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $88.00 | \n",
+ " DOLRTREE 3803 00038034 | \n",
+ " 12-Jul-11 | \n",
+ " 14-Jul-11 | \n",
+ " DISCOUNT STORES | \n",
+ "
\n",
+ " \n",
+ " 4585 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " P | \n",
+ " Nylon Mesh Sheet 30 Micro PCE | \n",
+ " $105.03 | \n",
+ " Amazon.com | \n",
+ " 14-Jul-11 | \n",
+ " 14-Jul-11 | \n",
+ " BOOK STORES | \n",
+ "
\n",
+ " \n",
+ " 4765 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " CONTAINERPLASTIC GRAY EA | \n",
+ " $177.24 | \n",
+ " W W GRAINGER 916 | \n",
+ " 6-Jul-11 | \n",
+ " 7-Jul-11 | \n",
+ " INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 4766 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " GENERAL PURCHASE | \n",
+ " $579.60 | \n",
+ " STILLWATER SAND & GRAVEL | \n",
+ " 6-Jul-11 | \n",
+ " 7-Jul-11 | \n",
+ " LUMBER AND BUILDING MATERIALS STORES | \n",
+ "
\n",
+ " \n",
+ " 4767 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " 9.8OZ DUP ALM PRMR K&B SI EA|1/4L (3/8O/D)X2'... | \n",
+ " $45.46 | \n",
+ " LOWES #00241 | \n",
+ " 6-Jul-11 | \n",
+ " 7-Jul-11 | \n",
+ " HOME SUPPLY WAREHOUSE STORES | \n",
+ "
\n",
+ " \n",
+ " 4768 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " P | \n",
+ " CUSHION PISTOL GRIP NOZZLE EA|JH GRABIT #2 SCR... | \n",
+ " $19.03 | \n",
+ " LOWES #00241 | \n",
+ " 6-Jul-11 | \n",
+ " 7-Jul-11 | \n",
+ " HOME SUPPLY WAREHOUSE STORES | \n",
+ "
\n",
+ " \n",
+ " 4956 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $226.24 | \n",
+ " COPELINS OFFICE CENTER LL | \n",
+ " 1-Jul-11 | \n",
+ " 4-Jul-11 | \n",
+ " OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM... | \n",
+ "
\n",
+ " \n",
+ " 4957 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $36.90 | \n",
+ " OKLAHOMA RESTAURANT SUPPL | \n",
+ " 1-Jul-11 | \n",
+ " 4-Jul-11 | \n",
+ " COMMERCIAL EQUIPMENT NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 4958 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " BUILDING WIRESTRANDED14A EA|COUPLING1/2 IN SLI... | \n",
+ " $66.56 | \n",
+ " W W GRAINGER 916 | \n",
+ " 1-Jul-11 | \n",
+ " 4-Jul-11 | \n",
+ " INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 4959 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " G | \n",
+ " PRIMERPURPLE8 OZPVC AND EA | \n",
+ " $10.54 | \n",
+ " W W GRAINGER 916 | \n",
+ " 1-Jul-11 | \n",
+ " 4-Jul-11 | \n",
+ " INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 4960 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " P | \n",
+ " 2X5'PVC SCH40 PIPE SOLID PCS | \n",
+ " $19.14 | \n",
+ " LOWES #00241 | \n",
+ " 1-Jul-11 | \n",
+ " 4-Jul-11 | \n",
+ " HOME SUPPLY WAREHOUSE STORES | \n",
+ "
\n",
+ " \n",
+ " 4990 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $22.07 | \n",
+ " CREST FOODS #5 | \n",
+ " 5-Jul-11 | \n",
+ " 7-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 5069 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $65.55 | \n",
+ " CREST FOODS #5 | \n",
+ " 30-Jun-11 | \n",
+ " 4-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 5507 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $55.03 | \n",
+ " CREST FOODS #5 | \n",
+ " 20-Jul-11 | \n",
+ " 22-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ "
\n",
+ " \n",
+ " 370428 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $9.99 | \n",
+ " BED BATH & BEYOND #164 | \n",
+ " 17-May-12 | \n",
+ " 21-May-12 | \n",
+ " MISCELLANEOUS HOME FURNISHING SPECIALTY STORES | \n",
+ "
\n",
+ " \n",
+ " 371488 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " ($199.05) | \n",
+ " COPELINS OFFICE CENTER LL | \n",
+ " 7-May-12 | \n",
+ " 9-May-12 | \n",
+ " OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM... | \n",
+ "
\n",
+ " \n",
+ " 371489 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $199.05 | \n",
+ " COPELINS OFFICE CENTER LL | \n",
+ " 7-May-12 | \n",
+ " 9-May-12 | \n",
+ " OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM... | \n",
+ "
\n",
+ " \n",
+ " 371490 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $199.05 | \n",
+ " COPELINS OFFICE CENTER LL | \n",
+ " 7-May-12 | \n",
+ " 9-May-12 | \n",
+ " OFFICE PHOTOGRAPHIC PHOTOCOPY AND MICROFILM... | \n",
+ "
\n",
+ " \n",
+ " 371713 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $23.92 | \n",
+ " WM SUPERCENTER#1626 | \n",
+ " 16-May-12 | \n",
+ " 17-May-12 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 372556 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " MYPLATE PLATE EA | \n",
+ " $52.55 | \n",
+ " NASCO CATALOG SALES | \n",
+ " 10-May-12 | \n",
+ " 14-May-12 | \n",
+ " STATIONERY OFFICE AND SCHOOL SUPPLY STORES | \n",
+ "
\n",
+ " \n",
+ " 373367 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " PAPERCOPYODCASE10-RE NMB | \n",
+ " $208.92 | \n",
+ " OFFICE DEPOT #1079 | \n",
+ " 9-May-12 | \n",
+ " 11-May-12 | \n",
+ " COMBINATION CATALOG AND RETAIL MERCHANT | \n",
+ "
\n",
+ " \n",
+ " 373368 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " LABELLSRADDRWHT3000C NMB|CUTLERY KEEPERHVYWEIG... | \n",
+ " $208.42 | \n",
+ " OFFICE DEPOT #1079 | \n",
+ " 9-May-12 | \n",
+ " 11-May-12 | \n",
+ " COMBINATION CATALOG AND RETAIL MERCHANT | \n",
+ "
\n",
+ " \n",
+ " 374054 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $14.40 | \n",
+ " CREST FOODS #5 | \n",
+ " 8-May-12 | \n",
+ " 10-May-12 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 374055 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $152.74 | \n",
+ " BREVIS CORPORATION | \n",
+ " 9-May-12 | \n",
+ " 10-May-12 | \n",
+ " PROFESSIONAL SERVICES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 374056 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " K | \n",
+ " GENERAL PURCHASE | \n",
+ " $80.03 | \n",
+ " DOMINO'S 6460 | \n",
+ " 8-May-12 | \n",
+ " 10-May-12 | \n",
+ " FAST FOOD RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 376046 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $23.92 | \n",
+ " WM SUPERCENTER#1626 | \n",
+ " 30-Apr-12 | \n",
+ " 1-May-12 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 376047 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $5.92 | \n",
+ " WM SUPERCENTER#1626 | \n",
+ " 30-Apr-12 | \n",
+ " 1-May-12 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 406027 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $93.11 | \n",
+ " CREST FOODS #5 | \n",
+ " 22-Jun-12 | \n",
+ " 25-Jun-12 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 406800 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $39.96 | \n",
+ " BED BATH & BEYOND #164 | \n",
+ " 25-Jun-12 | \n",
+ " 27-Jun-12 | \n",
+ " MISCELLANEOUS HOME FURNISHING SPECIALTY STORES | \n",
+ "
\n",
+ " \n",
+ " 407873 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " MYPLATE GUIDELINES TEARPAD EA|PERIODIC TABLE/S... | \n",
+ " $121.13 | \n",
+ " NASCO CATALOG SALES | \n",
+ " 26-Jun-12 | \n",
+ " 28-Jun-12 | \n",
+ " STATIONERY OFFICE AND SCHOOL SUPPLY STORES | \n",
+ "
\n",
+ " \n",
+ " 407997 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " MYPLATE GUIDELINES TEARPAD EA|PERIODIC TABLE/S... | \n",
+ " $334.65 | \n",
+ " NASCO CATALOG SALES | \n",
+ " 26-Jun-12 | \n",
+ " 28-Jun-12 | \n",
+ " STATIONERY OFFICE AND SCHOOL SUPPLY STORES | \n",
+ "
\n",
+ " \n",
+ " 408143 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $117.65 | \n",
+ " LEARNINGZONEXPRESS COM | \n",
+ " 21-Jun-12 | \n",
+ " 22-Jun-12 | \n",
+ " COMPUTERS COMPUTER PERIPHERAL EQUIPMENT SOFT... | \n",
+ "
\n",
+ " \n",
+ " 408144 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $42.85 | \n",
+ " LEARNINGZONEXPRESS COM | \n",
+ " 21-Jun-12 | \n",
+ " 22-Jun-12 | \n",
+ " COMPUTERS COMPUTER PERIPHERAL EQUIPMENT SOFT... | \n",
+ "
\n",
+ " \n",
+ " 409575 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $47.12 | \n",
+ " OK DEPT OF VO-TECH ED | \n",
+ " 8-Jun-12 | \n",
+ " 11-Jun-12 | \n",
+ " GOVERNMENT SERVICES--NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 413292 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " P | \n",
+ " CLEAR W&D SILICONE II 9.8 EA | \n",
+ " $11.90 | \n",
+ " LOWES #00241 | \n",
+ " 4-Jun-12 | \n",
+ " 5-Jun-12 | \n",
+ " HOME SUPPLY WAREHOUSE STORES | \n",
+ "
\n",
+ " \n",
+ " 413293 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " P | \n",
+ " GENERAL PURCHASE | \n",
+ " $17.31 | \n",
+ " WM SUPERCENTER#0137 | \n",
+ " 4-Jun-12 | \n",
+ " 5-Jun-12 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 414760 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $38.43 | \n",
+ " CREST FOODS #5 | \n",
+ " 11-Jun-12 | \n",
+ " 13-Jun-12 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 428199 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BELL | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " ($324.95) | \n",
+ " AVANGATE PERFECTTABLEP | \n",
+ " 19-Jun-12 | \n",
+ " 20-Jun-12 | \n",
+ " COMPUTER SOFTWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 429003 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BELL | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $120.00 | \n",
+ " UCDA | \n",
+ " 13-Jun-12 | \n",
+ " 14-Jun-12 | \n",
+ " MEMBERSHIP ORGANIZATIONS--NOT ELSEWHERE CLASSI... | \n",
+ "
\n",
+ " \n",
+ " 429081 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BELL | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $30.00 | \n",
+ " CORBIS/VEER LICENSE | \n",
+ " 1-Jun-12 | \n",
+ " 4-Jun-12 | \n",
+ " COMMERCIAL PHOTOGRAPHY ART AND GRAPHICS | \n",
+ "
\n",
+ " \n",
+ " 432186 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BELL | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $324.95 | \n",
+ " AVANGATE PERFECTTABLEP | \n",
+ " 8-Jun-12 | \n",
+ " 11-Jun-12 | \n",
+ " COMPUTER SOFTWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 432187 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BELL | \n",
+ " M | \n",
+ " Description Unavailable NBR|Description Unavai... | \n",
+ " $46.85 | \n",
+ " BARNES & NOBLE #2807 | \n",
+ " 9-Jun-12 | \n",
+ " 11-Jun-12 | \n",
+ " BOOK STORES | \n",
+ "
\n",
+ " \n",
+ " 432188 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BELL | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $2.60 | \n",
+ " INTERNATIONAL TRANSACTION | \n",
+ " 11-Jun-12 | \n",
+ " 11-Jun-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 433266 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BELL | \n",
+ " M | \n",
+ " PPRCPY28#100BLTRWE RM|PPRCPY28#100B11X17WE RM|... | \n",
+ " $342.54 | \n",
+ " Staples Contra00710004 | \n",
+ " 20-Jun-12 | \n",
+ " 22-Jun-12 | \n",
+ " STATIONERY OFFICE SUPPLIES PRINTING AND WRIT... | \n",
+ "
\n",
+ " \n",
+ "
\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",
+ " agency_number | \n",
+ " agency_name | \n",
+ " last_name | \n",
+ " first_initial | \n",
+ " description | \n",
+ " amount | \n",
+ " vendor | \n",
+ " transaction_date | \n",
+ " posted_date | \n",
+ " MCC | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $60.07 | \n",
+ " WM SUPERCENTER | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $41.29 | \n",
+ " WM SUPERCENTER | \n",
+ " 30-Jun-11 | \n",
+ " 1-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ " 5069 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BELL | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $65.55 | \n",
+ " CREST FOODS #5 | \n",
+ " 30-Jun-11 | \n",
+ " 4-Jul-11 | \n",
+ " GROCERY STORES AND SUPERMARKETS | \n",
+ "
\n",
+ " \n",
+ "
\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",
+ " agency_number | \n",
+ " agency_name | \n",
+ " last_name | \n",
+ " first_initial | \n",
+ " description | \n",
+ " amount | \n",
+ " vendor | \n",
+ " transaction_date | \n",
+ " posted_date | \n",
+ " MCC | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 203809 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " BRADLEY | \n",
+ " C | \n",
+ " GENERAL PURCHASE | \n",
+ " $7.37 | \n",
+ " # 11 CITY BITES | \n",
+ " 1-Dec-11 | \n",
+ " 2-Dec-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 135430 | \n",
+ " 55700 | \n",
+ " POLICE PENSION & RET. SYSTEM | \n",
+ " GORDON | \n",
+ " D | \n",
+ " GENERAL PURCHASE | \n",
+ " $269.99 | \n",
+ " # 11 CITY BITES | \n",
+ " 19-Oct-11 | \n",
+ " 20-Oct-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 203632 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " ARMSTRONG | \n",
+ " S | \n",
+ " GENERAL PURCHASE | \n",
+ " $10.36 | \n",
+ " # 17 CITY BITES | \n",
+ " 28-Dec-11 | \n",
+ " 29-Dec-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 41192 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " HANCOCK | \n",
+ " K | \n",
+ " GENERAL PURCHASE | \n",
+ " $156.99 | \n",
+ " # 21 CITY BITES | \n",
+ " 14-Aug-11 | \n",
+ " 15-Aug-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 259006 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " LEONARD | \n",
+ " A | \n",
+ " GENERAL PURCHASE | \n",
+ " $59.68 | \n",
+ " # 21 CITY BITES | \n",
+ " 5-Feb-12 | \n",
+ " 6-Feb-12 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 203755 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " TERRELL | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " $6.38 | \n",
+ " # 25 CITY BITES | \n",
+ " 9-Dec-11 | \n",
+ " 12-Dec-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 26167 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " ENGLE | \n",
+ " H | \n",
+ " Transaction Line Item | \n",
+ " $5.99 | \n",
+ " #08 VS 323169265994 | \n",
+ " 20-Jul-11 | \n",
+ " 22-Jul-11 | \n",
+ " Record Shops | \n",
+ "
\n",
+ " \n",
+ " 183852 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCE CENTER | \n",
+ " EASLEY | \n",
+ " C | \n",
+ " GENERAL PURCHASE | \n",
+ " $55.68 | \n",
+ " #1 PARTY SUPPLIES | \n",
+ " 2-Nov-11 | \n",
+ " 7-Nov-11 | \n",
+ " MISCELLANEOUS AND SPECIALTY RETAIL STORES | \n",
+ "
\n",
+ " \n",
+ " 187398 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " HUDSON | \n",
+ " S | \n",
+ " GENERAL PURCHASE | \n",
+ " $43.36 | \n",
+ " #21 VS | \n",
+ " 1-Dec-11 | \n",
+ " 5-Dec-11 | \n",
+ " BOOK STORES | \n",
+ "
\n",
+ " \n",
+ " 122563 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " JACKSON | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $43.08 | \n",
+ " #41 BRIO COUNTRY CLUB | \n",
+ " 1-Oct-11 | \n",
+ " 3-Oct-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 137080 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " RANGEL | \n",
+ " A | \n",
+ " GENERAL PURCHASE | \n",
+ " $25.13 | \n",
+ " #44 BRAVO| MEMORIAL SQUA | \n",
+ " 20-Oct-11 | \n",
+ " 24-Oct-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 137066 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " GRANGE | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $20.93 | \n",
+ " #44 BRAVO| MEMORIAL SQUA | \n",
+ " 21-Oct-11 | \n",
+ " 24-Oct-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 273523 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " PAGE | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $22.92 | \n",
+ " #44 BRAVO| MEMORIAL SQUA | \n",
+ " 23-Feb-12 | \n",
+ " 27-Feb-12 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 350180 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " TERRELL | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " $12.60 | \n",
+ " #44 BRAVO| MEMORIAL SQUA | \n",
+ " 18-Apr-12 | \n",
+ " 20-Apr-12 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 425708 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " RANGEL | \n",
+ " A | \n",
+ " GENERAL PURCHASE | \n",
+ " $17.90 | \n",
+ " #44 BRAVO| MEMORIAL SQUA | \n",
+ " 19-Jun-12 | \n",
+ " 21-Jun-12 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 18313 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " ABERNATHY | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $20.64 | \n",
+ " #44 BRAVO| MEMORIAL SQUA | \n",
+ " 22-Jul-11 | \n",
+ " 25-Jul-11 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 237004 | \n",
+ " 58500 | \n",
+ " DEPARTMENT OF PUBLIC SAFETY | \n",
+ " HARBIN | \n",
+ " T | \n",
+ " GENERAL PURCHASE | \n",
+ " $16.64 | \n",
+ " #44 BRAVO| MEMORIAL SQUA | \n",
+ " 4-Jan-12 | \n",
+ " 6-Jan-12 | \n",
+ " EATING PLACES AND RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 46449 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " HANCOCK | \n",
+ " K | \n",
+ " ROOM CHARGES | \n",
+ " $2,908.62 | \n",
+ " #464 RADISSON HOTEL CENTR | \n",
+ " 15-Aug-11 | \n",
+ " 16-Aug-11 | \n",
+ " LODGING--HOTELS MOTELS AND RESORTS | \n",
+ "
\n",
+ " \n",
+ " 295797 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " BRORSEN | \n",
+ " W | \n",
+ " GENERAL PURCHASE | \n",
+ " $150.00 | \n",
+ " (SA)HANGUKJEUNGGYONHAGHOI | \n",
+ " 23-Feb-12 | \n",
+ " 13-Mar-12 | \n",
+ " MISCELLANEOUS PERSONAL SERVICES--NOT ELSEWHERE... | \n",
+ "
\n",
+ " \n",
+ " 107715 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " NIELSEN | \n",
+ " T | \n",
+ " GENERAL PURCHASE | \n",
+ " $188.00 | \n",
+ " 000 DILLARD'S INC. | \n",
+ " 31-Aug-11 | \n",
+ " 1-Sep-11 | \n",
+ " DEPARTMENT STORES | \n",
+ "
\n",
+ " \n",
+ " 23811 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BRAUNBECK | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $90.00 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 1-Jul-11 | \n",
+ " 4-Jul-11 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 191876 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " DAVIS | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $38.91 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 6-Dec-11 | \n",
+ " 7-Dec-11 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 331310 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " DAVIS | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $39.04 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 23-Apr-12 | \n",
+ " 24-Apr-12 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 245107 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BRAUNBECK | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $37.46 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 19-Jan-12 | \n",
+ " 20-Jan-12 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 242249 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BRAUNBECK | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $37.22 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 6-Jan-12 | \n",
+ " 9-Jan-12 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 176456 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BRAUNBECK | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $93.29 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 4-Nov-11 | \n",
+ " 7-Nov-11 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 293176 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " DAVIS | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $39.06 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 26-Mar-12 | \n",
+ " 27-Mar-12 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 277107 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BRAUNBECK | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $37.46 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 20-Feb-12 | \n",
+ " 21-Feb-12 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 107861 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BRAUNBECK | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $92.15 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 1-Sep-11 | \n",
+ " 2-Sep-11 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " 227374 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " DAVIS | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $39.06 | \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 17-Jan-12 | \n",
+ " 18-Jan-12 | \n",
+ " TELECOMMUNICATION SERVICES | \n",
+ "
\n",
+ " \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ "
\n",
+ " \n",
+ " 286707 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " YANDELL | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $233.58 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 10-Feb-12 | \n",
+ " 13-Feb-12 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 150464 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCE CENTER | \n",
+ " EASLEY | \n",
+ " C | \n",
+ " GENERAL PURCHASE | \n",
+ " $181.17 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 19-Oct-11 | \n",
+ " 20-Oct-11 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 287566 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " EASLEY | \n",
+ " C | \n",
+ " GENERAL PURCHASE | \n",
+ " $103.20 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 3-Feb-12 | \n",
+ " 6-Feb-12 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 195142 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " TOLBART | \n",
+ " S | \n",
+ " GENERAL PURCHASE | \n",
+ " $1,177.02 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 16-Dec-11 | \n",
+ " 19-Dec-11 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 181341 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCE CENTER | \n",
+ " YANDELL | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $130.21 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 16-Nov-11 | \n",
+ " 17-Nov-11 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 399501 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " EASLEY | \n",
+ " C | \n",
+ " GENERAL PURCHASE | \n",
+ " $165.73 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 5-May-12 | \n",
+ " 7-May-12 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 398900 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " YANDELL | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $260.24 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 24-May-12 | \n",
+ " 25-May-12 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 147675 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCE CENTER | \n",
+ " YANDELL | \n",
+ " R | \n",
+ " GENERAL PURCHASE | \n",
+ " $174.14 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 29-Oct-11 | \n",
+ " 31-Oct-11 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 435168 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " EASLEY | \n",
+ " C | \n",
+ " GENERAL PURCHASE | \n",
+ " $1,904.98 | \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 23-Jun-12 | \n",
+ " 25-Jun-12 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 414172 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " DEAN | \n",
+ " V | \n",
+ " GENERAL PURCHASE | \n",
+ " $688.01 | \n",
+ " robotis-shop-en.com | \n",
+ " 15-Jun-12 | \n",
+ " 18-Jun-12 | \n",
+ " DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE... | \n",
+ "
\n",
+ " \n",
+ " 74560 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCE CENTER | \n",
+ " SUMMERS-ABLES | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $9.95 | \n",
+ " soilsleuth@aol.com | \n",
+ " 23-Aug-11 | \n",
+ " 24-Aug-11 | \n",
+ " DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE... | \n",
+ "
\n",
+ " \n",
+ " 141781 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " FARROW | \n",
+ " V | \n",
+ " GENERAL PURCHASE | \n",
+ " $69.44 | \n",
+ " value plastics inc | \n",
+ " 18-Oct-11 | \n",
+ " 19-Oct-11 | \n",
+ " MISCELLANEOUS AND SPECIALTY RETAIL STORES | \n",
+ "
\n",
+ " \n",
+ " 256724 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " JEYASINGH | \n",
+ " P | \n",
+ " GENERAL PURCHASE | \n",
+ " $87.15 | \n",
+ " value plastics inc | \n",
+ " 23-Feb-12 | \n",
+ " 24-Feb-12 | \n",
+ " MISCELLANEOUS AND SPECIALTY RETAIL STORES | \n",
+ "
\n",
+ " \n",
+ " 285576 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " PALASZ | \n",
+ " L | \n",
+ " GENERAL PURCHASE | \n",
+ " $756.62 | \n",
+ " value plastics inc | \n",
+ " 7-Feb-12 | \n",
+ " 8-Feb-12 | \n",
+ " MISCELLANEOUS AND SPECIALTY RETAIL STORES | \n",
+ "
\n",
+ " \n",
+ " 38888 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " MOFFAT | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $185.00 | \n",
+ " vet imaging | \n",
+ " 5-Aug-11 | \n",
+ " 8-Aug-11 | \n",
+ " MISCELLANEOUS AND SPECIALTY RETAIL STORES | \n",
+ "
\n",
+ " \n",
+ " 12823 | \n",
+ " 29000 | \n",
+ " EMPLOYMENT SECURITY COMMISSION | \n",
+ " HAN | \n",
+ " H | \n",
+ " GENERAL PURCHASE | \n",
+ " $95.40 | \n",
+ " wmill.com ResponseOmatic | \n",
+ " 6-Jul-11 | \n",
+ " 8-Jul-11 | \n",
+ " PROFESSIONAL SERVICES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 356968 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " HENKELS | \n",
+ " S | \n",
+ " GENERAL PURCHASE | \n",
+ " $399.00 | \n",
+ " www.anastasiadate.com | \n",
+ " 8-Apr-12 | \n",
+ " 9-Apr-12 | \n",
+ " DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS | \n",
+ "
\n",
+ " \n",
+ " 377750 | \n",
+ " 2500 | \n",
+ " OKLAHOMA MILITARY DEPARTMENT | \n",
+ " SWENSON | \n",
+ " K | \n",
+ " GENERAL PURCHASE | \n",
+ " $476.37 | \n",
+ " www.dumpster.com | \n",
+ " 8-May-12 | \n",
+ " 10-May-12 | \n",
+ " FUEL DEALERS--FUEL OIL WOOD COAL AND LIQ. PETR... | \n",
+ "
\n",
+ " \n",
+ " 415473 | \n",
+ " 2500 | \n",
+ " OKLAHOMA MILITARY DEPARTMENT | \n",
+ " SWENSON | \n",
+ " K | \n",
+ " GENERAL PURCHASE | \n",
+ " $509.75 | \n",
+ " www.dumpster.com | \n",
+ " 27-Jun-12 | \n",
+ " 29-Jun-12 | \n",
+ " FUEL DEALERS--FUEL OIL WOOD COAL AND LIQ. PETR... | \n",
+ "
\n",
+ " \n",
+ " 438854 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " CAMPBELL | \n",
+ " K | \n",
+ " GENERAL PURCHASE | \n",
+ " $489.00 | \n",
+ " www.favoriteplus.com | \n",
+ " 8-Jun-12 | \n",
+ " 11-Jun-12 | \n",
+ " DENTAL/LABORATORY/MEDICAL/OPHTHALMIC HOSP EQIP... | \n",
+ "
\n",
+ " \n",
+ " 215934 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCE CENTER | \n",
+ " KRANZ | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $259.00 | \n",
+ " www.karger.ch | \n",
+ " 16-Dec-11 | \n",
+ " 19-Dec-11 | \n",
+ " COMBINATION CATALOG AND RETAIL MERCHANT | \n",
+ "
\n",
+ " \n",
+ " 74879 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCE CENTER | \n",
+ " CROCKETT | \n",
+ " M | \n",
+ " GENERAL PURCHASE | \n",
+ " $179.00 | \n",
+ " www.karger.ch | \n",
+ " 12-Aug-11 | \n",
+ " 15-Aug-11 | \n",
+ " COMBINATION CATALOG AND RETAIL MERCHANT | \n",
+ "
\n",
+ " \n",
+ " 248605 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " WILLIAMS | \n",
+ " K | \n",
+ " GENERAL PURCHASE | \n",
+ " $179.00 | \n",
+ " www.karger.ch | \n",
+ " 20-Jan-12 | \n",
+ " 23-Jan-12 | \n",
+ " COMBINATION CATALOG AND RETAIL MERCHANT | \n",
+ "
\n",
+ " \n",
+ " 247481 | \n",
+ " 77000 | \n",
+ " UNIV. OF OKLA. HEALTH SCIENCES CENTER | \n",
+ " LE | \n",
+ " Y | \n",
+ " GENERAL PURCHASE | \n",
+ " $38.00 | \n",
+ " www.karger.ch | \n",
+ " 13-Jan-12 | \n",
+ " 17-Jan-12 | \n",
+ " MISCELLANEOUS AND SPECIALTY RETAIL STORES | \n",
+ "
\n",
+ " \n",
+ " 433297 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " BARDGETT | \n",
+ " L | \n",
+ " GENERAL PURCHASE | \n",
+ " $88.82 | \n",
+ " www.mohr.de | \n",
+ " 27-Jun-12 | \n",
+ " 28-Jun-12 | \n",
+ " BOOK STORES | \n",
+ "
\n",
+ " \n",
+ " 276256 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " SUBLETT | \n",
+ " G | \n",
+ " GENERAL PURCHASE | \n",
+ " $329.50 | \n",
+ " www.realtimesoft.com | \n",
+ " 14-Feb-12 | \n",
+ " 16-Feb-12 | \n",
+ " COMPUTER SOFTWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 242936 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " SUBLETT | \n",
+ " G | \n",
+ " GENERAL PURCHASE | \n",
+ " $39.95 | \n",
+ " www.realtimesoft.com | \n",
+ " 3-Jan-12 | \n",
+ " 5-Jan-12 | \n",
+ " COMPUTER SOFTWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 188107 | \n",
+ " 1000 | \n",
+ " OKLAHOMA STATE UNIVERSITY | \n",
+ " THOMPSON | \n",
+ " S | \n",
+ " GENERAL PURCHASE | \n",
+ " $164.98 | \n",
+ " www.testking.com | \n",
+ " 30-Nov-11 | \n",
+ " 2-Dec-11 | \n",
+ " BUSINESS SERVICES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 141288 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " TURNER | \n",
+ " C | \n",
+ " GENERAL PURCHASE | \n",
+ " $1.00 | \n",
+ " zombaio.com C19042613186 | \n",
+ " 15-Oct-11 | \n",
+ " 17-Oct-11 | \n",
+ " DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS | \n",
+ "
\n",
+ " \n",
+ " 141293 | \n",
+ " 76000 | \n",
+ " UNIVERSITY OF OKLAHOMA | \n",
+ " TURNER | \n",
+ " C | \n",
+ " GENERAL PURCHASE | \n",
+ " $1.00 | \n",
+ " zombaio.com C38178113186 | \n",
+ " 15-Oct-11 | \n",
+ " 17-Oct-11 | \n",
+ " DIRECT MARKETING--INBOUND TELEMARKETING MERCHANTS | \n",
+ "
\n",
+ " \n",
+ "
\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",
+ " agency_number | \n",
+ " agency_name | \n",
+ " last_name | \n",
+ " first_initial | \n",
+ " description | \n",
+ " amount | \n",
+ " vendor | \n",
+ " transaction_date | \n",
+ " posted_date | \n",
+ " MCC | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 50962 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " $20.00 | \n",
+ " BART-COLISEUM QPS | \n",
+ " 11-Aug-11 | \n",
+ " 12-Aug-11 | \n",
+ " LOCAL AND SUBURBAN COMMUTER PASS TRANS INCLUD... | \n",
+ "
\n",
+ " \n",
+ " 343834 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " ROOM CHARGES | \n",
+ " $140.00 | \n",
+ " BEST WESTERN WESTERN INN | \n",
+ " 14-Apr-12 | \n",
+ " 16-Apr-12 | \n",
+ " BEST WESTERN | \n",
+ "
\n",
+ " \n",
+ " 15132 | \n",
+ " 35000 | \n",
+ " HISTORICAL SOCIETY | \n",
+ " ZWEIACHER | \n",
+ " T | \n",
+ " GENERAL PURCHASE | \n",
+ " $2,540.00 | \n",
+ " DRIVESAVERS INC | \n",
+ " 1-Jul-11 | \n",
+ " 4-Jul-11 | \n",
+ " DIRCT MARKETING/DIRCT MARKETERS--NOT ELSEWHERE... | \n",
+ "
\n",
+ " \n",
+ " 343787 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " $140.27 | \n",
+ " GOLDEN CORRAL 2407 | \n",
+ " 12-Apr-12 | \n",
+ " 13-Apr-12 | \n",
+ " FAST FOOD RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 130956 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " $415.00 | \n",
+ " HAWAII INTL CONF INTERNET | \n",
+ " 29-Sep-11 | \n",
+ " 3-Oct-11 | \n",
+ " SCHOOLS AND EDUCATIONAL SERVICES NOT ELSEWHERE... | \n",
+ "
\n",
+ " \n",
+ " 166397 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " ($340.00) | \n",
+ " HAWAII INTL CONF INTERNET | \n",
+ " 1-Nov-11 | \n",
+ " 3-Nov-11 | \n",
+ " SCHOOLS AND EDUCATIONAL SERVICES NOT ELSEWHERE... | \n",
+ "
\n",
+ " \n",
+ " 343830 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " $49.02 | \n",
+ " LJS 31512 | \n",
+ " 13-Apr-12 | \n",
+ " 16-Apr-12 | \n",
+ " FAST FOOD RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 343831 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " $52.94 | \n",
+ " LJS 31512 | \n",
+ " 13-Apr-12 | \n",
+ " 16-Apr-12 | \n",
+ " FAST FOOD RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 343833 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " ($52.94) | \n",
+ " LJS 31512 | \n",
+ " 13-Apr-12 | \n",
+ " 16-Apr-12 | \n",
+ " FAST FOOD RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 51082 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " ($16.99) | \n",
+ " MARRIOTT OAKLND CITY CNTR | \n",
+ " 17-Aug-11 | \n",
+ " 18-Aug-11 | \n",
+ " MARRIOTT | \n",
+ "
\n",
+ " \n",
+ " 51094 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " ROOM CHARGES | \n",
+ " $506.23 | \n",
+ " MARRIOTT OAKLND CITY CNTR | \n",
+ " 16-Aug-11 | \n",
+ " 17-Aug-11 | \n",
+ " MARRIOTT | \n",
+ "
\n",
+ " \n",
+ " 343832 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " ZWEIACHER | \n",
+ " E | \n",
+ " GENERAL PURCHASE | \n",
+ " $29.25 | \n",
+ " MCDONALD'S F4581 | \n",
+ " 14-Apr-12 | \n",
+ " 16-Apr-12 | \n",
+ " FAST FOOD RESTAURANTS | \n",
+ "
\n",
+ " \n",
+ " 92461 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $2,027.97 | \n",
+ " ARNETT NEW HOLLAND | \n",
+ " 2-Sep-11 | \n",
+ " 5-Sep-11 | \n",
+ " MISC. AUTOMOTIVE AIRCRAFT AND FARM EQUIPMENT D... | \n",
+ "
\n",
+ " \n",
+ " 419808 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $52.67 | \n",
+ " ATW OF ELK CITY # 07 | \n",
+ " 6-Jun-12 | \n",
+ " 7-Jun-12 | \n",
+ " MISCELLANEOUS AND SPECIALTY RETAIL STORES | \n",
+ "
\n",
+ " \n",
+ " 131636 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $31.98 | \n",
+ " CHEYENNE LUMBER | \n",
+ " 3-Oct-11 | \n",
+ " 5-Oct-11 | \n",
+ " LUMBER AND BUILDING MATERIALS STORES | \n",
+ "
\n",
+ " \n",
+ " 419373 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $134.64 | \n",
+ " CHEYENNE LUMBER | \n",
+ " 12-Jun-12 | \n",
+ " 14-Jun-12 | \n",
+ " LUMBER AND BUILDING MATERIALS STORES | \n",
+ "
\n",
+ " \n",
+ " 51698 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $28.52 | \n",
+ " LOCKE SUPPLY - WHC WOODWA | \n",
+ " 4-Aug-11 | \n",
+ " 8-Aug-11 | \n",
+ " HARDWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 419516 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $509.70 | \n",
+ " LOCKE SUPPLY - WOODWARD | \n",
+ " 13-Jun-12 | \n",
+ " 15-Jun-12 | \n",
+ " HARDWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 231267 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $26.34 | \n",
+ " NORTHWEST BEARING & INDUS | \n",
+ " 13-Jan-12 | \n",
+ " 16-Jan-12 | \n",
+ " MISCELLANEOUS AND SPECIALTY RETAIL STORES | \n",
+ "
\n",
+ " \n",
+ " 344706 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $240.75 | \n",
+ " ROLL GRAIN & FEED | \n",
+ " 13-Apr-12 | \n",
+ " 16-Apr-12 | \n",
+ " AGRICULTURAL COOPERATIVES | \n",
+ "
\n",
+ " \n",
+ " 92439 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $340.66 | \n",
+ " SANDER SPORTING GOODS | \n",
+ " 19-Sep-11 | \n",
+ " 21-Sep-11 | \n",
+ " CAMPER RECREATIONAL AND UTILITY TRAILER DEALERS | \n",
+ "
\n",
+ " \n",
+ " 167279 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $239.97 | \n",
+ " SEARS DEALER 3636 | \n",
+ " 7-Nov-11 | \n",
+ " 9-Nov-11 | \n",
+ " DEPARTMENT STORES | \n",
+ "
\n",
+ " \n",
+ " 306386 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $2,037.19 | \n",
+ " SOLAR POWER AND PUMP CO | \n",
+ " 7-Mar-12 | \n",
+ " 8-Mar-12 | \n",
+ " PLUMBING AND HEATING EQUIPMENT AND SUPPLIES | \n",
+ "
\n",
+ " \n",
+ " 419809 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $310.00 | \n",
+ " SOLAR POWER AND PUMP CO | \n",
+ " 6-Jun-12 | \n",
+ " 7-Jun-12 | \n",
+ " PLUMBING AND HEATING EQUIPMENT AND SUPPLIES | \n",
+ "
\n",
+ " \n",
+ " 306441 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " NUZZLE ASSEMBLY1/4-2010 EA | \n",
+ " $24.51 | \n",
+ " W W GRAINGER 916 | \n",
+ " 19-Mar-12 | \n",
+ " 21-Mar-12 | \n",
+ " INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 306442 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " BUSHING1 X 3/4 IN SPIGOT EA|BUSHING1 1/4 X 3/4... | \n",
+ " $987.69 | \n",
+ " W W GRAINGER 916 | \n",
+ " 19-Mar-12 | \n",
+ " 21-Mar-12 | \n",
+ " INDUSTRIAL SUPPLIES NOT ELSEWHERE CLASSIFIED | \n",
+ "
\n",
+ " \n",
+ " 51943 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $118.94 | \n",
+ " WOODWARD ACE HARDWARE | \n",
+ " 29-Aug-11 | \n",
+ " 31-Aug-11 | \n",
+ " HARDWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 199094 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $91.98 | \n",
+ " WOODWARD ACE HARDWARE | \n",
+ " 7-Dec-11 | \n",
+ " 9-Dec-11 | \n",
+ " HARDWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 231269 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $77.96 | \n",
+ " WOODWARD ACE HOME CTR. | \n",
+ " 13-Jan-12 | \n",
+ " 16-Jan-12 | \n",
+ " HARDWARE STORES | \n",
+ "
\n",
+ " \n",
+ " 268307 | \n",
+ " 32000 | \n",
+ " DEPARTMENT OF WILDLIFE CONSERVATION | \n",
+ " ZURENDA | \n",
+ " J | \n",
+ " GENERAL PURCHASE | \n",
+ " $27.00 | \n",
+ " WOODWARD ACE HOME CTR. | \n",
+ " 27-Feb-12 | \n",
+ " 29-Feb-12 | \n",
+ " HARDWARE STORES | \n",
+ "
\n",
+ " \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ "
\n",
+ " \n",
+ " 12701 | \n",
+ " 26500 | \n",
+ " DEPARTMENT OF EDUCATION | \n",
+ " 26500 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $17,654.47 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 91961 | \n",
+ " 26500 | \n",
+ " DEPARTMENT OF EDUCATION | \n",
+ " 26500 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $12,265.27 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 9792 | \n",
+ " 2500 | \n",
+ " OKLAHOMA MILITARY DEPARTMENT | \n",
+ " 2500 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $1,932.41 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 88603 | \n",
+ " 2500 | \n",
+ " OKLAHOMA MILITARY DEPARTMENT | \n",
+ " 2500 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $512.59 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 418813 | \n",
+ " 24100 | \n",
+ " REDLANDS COMMUNITY COLLEGE | \n",
+ " 24100 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $502.63 | \n",
+ " LATE PAYMENT FEE | \n",
+ " 25-Jun-12 | \n",
+ " 25-Jun-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 230389 | \n",
+ " 24000 | \n",
+ " EASTERN OKLA. STATE COLLEGE | \n",
+ " 24000 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " ($250.00) | \n",
+ " CREDIT LATE CHARGE FEE | \n",
+ " 10-Nov-11 | \n",
+ " 26-Jan-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 230390 | \n",
+ " 24000 | \n",
+ " EASTERN OKLA. STATE COLLEGE | \n",
+ " 24000 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " ($0.75) | \n",
+ " CREDIT PURCHASE FINANCE C | \n",
+ " 30-Nov-11 | \n",
+ " 26-Jan-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 166270 | \n",
+ " 24000 | \n",
+ " EASTERN OKLA. STATE COLLEGE | \n",
+ " 24000 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $250.00 | \n",
+ " LATE PAYMENT FEE | \n",
+ " 10-Nov-11 | \n",
+ " 10-Nov-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 305066 | \n",
+ " 24000 | \n",
+ " EASTERN OKLA. STATE COLLEGE | \n",
+ " 24000 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $423.49 | \n",
+ " LATE PAYMENT FEE | \n",
+ " 12-Mar-12 | \n",
+ " 12-Mar-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 166311 | \n",
+ " 24000 | \n",
+ " EASTERN OKLA. STATE COLLEGE | \n",
+ " 24000 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $0.75 | \n",
+ " PURCHASE FINANCE CHARGE | \n",
+ " 30-Nov-11 | \n",
+ " 30-Nov-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 305076 | \n",
+ " 24000 | \n",
+ " EASTERN OKLA. STATE COLLEGE | \n",
+ " 24000 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $1.54 | \n",
+ " PURCHASE FINANCE CHARGE | \n",
+ " 30-Mar-12 | \n",
+ " 30-Mar-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 12611 | \n",
+ " 22000 | \n",
+ " DISTRICT ATTORNEYS COUNCIL | \n",
+ " 22000 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $127.96 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 91459 | \n",
+ " 22000 | \n",
+ " DISTRICT ATTORNEYS COUNCIL | \n",
+ " 22000 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $435.00 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 163854 | \n",
+ " 2200 | \n",
+ " OKLAHOMA ABSTRACTORS BOARD | \n",
+ " 2200 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " ($0.05) | \n",
+ " CREDIT PURCHASE FINANCE C | \n",
+ " 31-Oct-11 | \n",
+ " 4-Nov-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 88415 | \n",
+ " 2200 | \n",
+ " OKLAHOMA ABSTRACTORS BOARD | \n",
+ " 2200 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $1,690.23 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 12572 | \n",
+ " 21500 | \n",
+ " BOARD OF DENTISTRY | \n",
+ " 21500 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $298.26 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 91399 | \n",
+ " 21500 | \n",
+ " BOARD OF DENTISTRY | \n",
+ " 21500 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $115.66 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 12569 | \n",
+ " 20400 | \n",
+ " J. M. DAVIS ARMS & HIST. MUSEUM | \n",
+ " 20400 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $4,538.31 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 91391 | \n",
+ " 20400 | \n",
+ " J. M. DAVIS ARMS & HIST. MUSEUM | \n",
+ " 20400 | \n",
+ " 2 | \n",
+ " GENERAL PURCHASE | \n",
+ " $2,285.94 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 12547 | \n",
+ " 19000 | \n",
+ " COSMETOLOGY BOARD | \n",
+ " 19000 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $2,645.92 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 91380 | \n",
+ " 19000 | \n",
+ " COSMETOLOGY BOARD | \n",
+ " 19000 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $1,270.00 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 304785 | \n",
+ " 16000 | \n",
+ " DEPARTMENT OF COMMERCE | \n",
+ " 16000 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " ($0.10) | \n",
+ " ADJUSTMENT | \n",
+ " 31-Jan-12 | \n",
+ " 30-Mar-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 343337 | \n",
+ " 16000 | \n",
+ " DEPARTMENT OF COMMERCE | \n",
+ " 16000 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $0.20 | \n",
+ " BALANCE ADJUSTMENT | \n",
+ " 5-Apr-12 | \n",
+ " 5-Apr-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 230239 | \n",
+ " 16000 | \n",
+ " DEPARTMENT OF COMMERCE | \n",
+ " 16000 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $5,461.54 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 12-Jan-12 | \n",
+ " 31-Jan-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 266831 | \n",
+ " 16000 | \n",
+ " DEPARTMENT OF COMMERCE | \n",
+ " 16000 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $9,262.49 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Feb-12 | \n",
+ " 21-Feb-12 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 12398 | \n",
+ " 14500 | \n",
+ " ST. BD. OF CHIROPRACTIC EXAM. | \n",
+ " 14500 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $1,157,092.14 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 91214 | \n",
+ " 14500 | \n",
+ " ST. BD. OF CHIROPRACTIC EXAM. | \n",
+ " 14500 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $280.17 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 12286 | \n",
+ " 13100 | \n",
+ " DEPARTMENT OF CORRECTIONS | \n",
+ " 13100 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $2,619.29 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 10819 | \n",
+ " 12500 | \n",
+ " DEPARTMENT OF MINES | \n",
+ " 12500 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $10,815.38 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 13-Jul-11 | \n",
+ " 27-Jul-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ " 89524 | \n",
+ " 12500 | \n",
+ " DEPARTMENT OF MINES | \n",
+ " 12500 | \n",
+ " 1 | \n",
+ " GENERAL PURCHASE | \n",
+ " $1,565.14 | \n",
+ " PAYMENT ADJUSTMENT | \n",
+ " 11-Aug-11 | \n",
+ " 7-Sep-11 | \n",
+ " OTHER FEES | \n",
+ "
\n",
+ " \n",
+ "
\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",
+ " vendor | \n",
+ "
\n",
+ " \n",
+ " vendor | \n",
+ " | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " # 11 CITY BITES | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " # 17 CITY BITES | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " # 21 CITY BITES | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " # 25 CITY BITES | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " #08 VS 323169265994 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " #1 PARTY SUPPLIES | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " #21 VS | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " #41 BRIO COUNTRY CLUB | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " #44 BRAVO| MEMORIAL SQUA | \n",
+ " 7 | \n",
+ "
\n",
+ " \n",
+ " #464 RADISSON HOTEL CENTR | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " (SA)HANGUKJEUNGGYONHAGHOI | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 000 DILLARD'S INC. | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 003 CENTURYLINK MY ACCOUN | \n",
+ " 27 | \n",
+ "
\n",
+ " \n",
+ " 004 CENTURYLINK IVR | \n",
+ " 11 | \n",
+ "
\n",
+ " \n",
+ " 0187 CED | \n",
+ " 4 | \n",
+ "
\n",
+ " \n",
+ " 0280 OKLAHOMA FAIR | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 040 CODE REVISERS OFFICE | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 0410 AMERICAN | \n",
+ " 16 | \n",
+ "
\n",
+ " \n",
+ " 084-SPOTLIGHT 14 | \n",
+ " 5 | \n",
+ "
\n",
+ " \n",
+ " 1 800 621 6427 | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " 1 800 869 4263 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 1 800 RADIATOR AND AC OF | \n",
+ " 4 | \n",
+ "
\n",
+ " \n",
+ " 1 800 RADIATOR OKC | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 1 CART COM | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 1 STOP SIGNS | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 1 WORLD GLOBES AND MAPS | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 1 WORLD SARONGS | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 1-800 CONFERENCE | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " 1-800-DOORBELL-LORD HEN | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 10 8 VIDEO | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " ... | \n",
+ " ... | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 72898661 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 72929208 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 72979430 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 73009678 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 73047095 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 73455627 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 81430518 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 81723010 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 81737927 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 82063819 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 82064441 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 82283035 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 82607406 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 82755972 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV 82859286 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " pss_2025 INV MULTIPLE | \n",
+ " 36 | \n",
+ "
\n",
+ " \n",
+ " robotis-shop-en.com | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " soilsleuth@aol.com | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " value plastics inc | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " vet imaging | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " wmill.com ResponseOmatic | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " www.anastasiadate.com | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " www.dumpster.com | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " www.favoriteplus.com | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " www.karger.ch | \n",
+ " 4 | \n",
+ "
\n",
+ " \n",
+ " www.mohr.de | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " www.realtimesoft.com | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " www.testking.com | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " zombaio.com C19042613186 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " zombaio.com C38178113186 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ "
\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",
+ " vendor | \n",
+ "
\n",
+ " \n",
+ " transaction_date | \n",
+ " vendor | \n",
+ " | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 1-Apr-12 | \n",
+ " 59 DINER | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " ACCESSLINE PHONE SVC | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AGENT FEE 8900573345226 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " ALFALFA ELECTRIC COOPERA | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " ALL STAR AIRPORT EXPRESS | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMAZON MKTPLACE PMTS | \n",
+ " 8 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267646861 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267647896 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267647982 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267648058 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267648120 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267648225 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267648302 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267648409 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0010267648476 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMERICAN AI 0017048271482 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AMPCO PARKING OKLAHOMA CI | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " APL APPLE ITUNES STORE | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " APL APPLE ONLINE STORE | \n",
+ " 8 | \n",
+ "
\n",
+ " \n",
+ " ARC SERVICES/TRAINING | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AT LINK SERVICES | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AT&T DATA | \n",
+ " 5 | \n",
+ "
\n",
+ " \n",
+ " ATT POS PARTNER | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " ATTM 827927751 NBI | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " ATTM 827978547 NBI | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AUTOST AREZZO/MASSAROSA | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AUTOST LUCCA OVEST/AREZZO | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AUTOST ROMA NORD/AREZZO | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " AV AVNET ELECTRONICS | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " Amazon.com | \n",
+ " 10 | \n",
+ "
\n",
+ " \n",
+ " ... | \n",
+ " ... | \n",
+ " ... | \n",
+ "
\n",
+ " \n",
+ " 9-Sep-11 | \n",
+ " WALMART.COM | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WATER STORE INC | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WAYEST SAFETY INC | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " WEATHERFORD ACE HOME CTR | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WEATHERLY RCA | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WEBSITEHOSTINGBILL.COM | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WESTERN DIGITAL CORPORAT | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WESTERN EQUIPMENT ALVA | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WESTLAKE HARDWARE | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WHITTIER MAILING PRODUCTS | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WHITTON SUPPLY CO | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " WILCOXON RESEARCH INC | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WILDFLOWERMEADOWS | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WINFIELD SOLUTIONS OCITY | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WINKLE'S PLUMBING & ELECT | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WKH LIPPINCOTT WMS/WIL | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WM EZPAY | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WM SUPERCENTER | \n",
+ " 56 | \n",
+ "
\n",
+ " \n",
+ " WOLVERINE BRASS INC | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WOODWARD HOLIDAY INN EXP | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " WOSC BUSINESS OFFICE | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " WSC Windstream Pmt&Fee | \n",
+ " 5 | \n",
+ "
\n",
+ " \n",
+ " WSC Windstream PmtFee | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " WSG WILSON SPTG GDS | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " WW GRAINGER | \n",
+ " 18 | \n",
+ "
\n",
+ " \n",
+ " WWW.NEWEGG.COM | \n",
+ " 8 | \n",
+ "
\n",
+ " \n",
+ " XPEDX-INTL PAPER | \n",
+ " 10 | \n",
+ "
\n",
+ " \n",
+ " Y BAR RENTAL & EQUIPMENT | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " YELLOW HOUSE SAND SPRINGS | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " YODER BROTHERS | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ "
\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
+}