In [4]:
import pandas
import matplotlib as mpl
mpl.rc('figure', figsize=(12, 6))
#set_printoptions(max_columns=18)
set_options(max_columns=18)
months = {'JAN' : 1, 'FEB' : 2, 'MAR' : 3, 'APR' : 4, 'MAY' : 5, 'JUN' : 6,
          'JUL' : 7, 'AUG' : 8, 'SEP' : 9, 'OCT': 10, 'NOV': 11, 'DEC' : 12}
of_interest = ['Obama, Barack', 'Romney, Mitt', 'Santorum, Rick', 
               'Paul, Ron', 'Gingrich, Newt']
parties = {
  'Bachmann, Michelle': 'Republican',
  'Romney, Mitt': 'Republican',
  'Obama, Barack': 'Democrat',
  "Roemer, Charles E. 'Buddy' III": 'Reform',
  'Pawlenty, Timothy': 'Republican',
  'Johnson, Gary Earl': 'Libertarian',
  'Paul, Ron': 'Republican',
  'Santorum, Rick': 'Republican',
  'Cain, Herman': 'Republican',
  'Gingrich, Newt': 'Republican',
  'McCotter, Thaddeus G': 'Republican',
  'Huntsman, Jon': 'Republican',
  'Perry, Rick': 'Republican'           
 }


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-d730f5ba5eaf> in <module>()
      3 mpl.rc('figure', figsize=(12, 6))
      4 #set_printoptions(max_columns=18)
----> 5 set_options(max_columns=18)
      6 months = {'JAN' : 1, 'FEB' : 2, 'MAR' : 3, 'APR' : 4, 'MAY' : 5, 'JUN' : 6,
      7           'JUL' : 7, 'AUG' : 8, 'SEP' : 9, 'OCT': 10, 'NOV': 11, 'DEC' : 12}

NameError: name 'set_options' is not defined

In [2]:
fec = read_csv('P00000001-ALL.txt')


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-7c347363dfb9> in <module>()
----> 1 fec = read_csv('P00000001-ALL.txt')

NameError: name 'read_csv' is not defined

In [1]:
fec


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-423709a345b0> in <module>()
----> 1 fec

NameError: name 'fec' is not defined

In [ ]: