pysal / notebooks

jupyter/ipython notebooks demonstrating PySAL functionality
54 stars 38 forks source link

PySAL_esda failling on epd 7.3-2 (32-bit) #2

Closed sjsrey closed 9 years ago

sjsrey commented 11 years ago

In [14]:

srv = pd.Series(mr.sim) f = figure() ax = f.add_subplot(111) srv.plot(kind='kde', ax=ax) axvline(mr.I, color='r') xlabel('I') ylabel('f(I)')

title('Empirical distribution and value of $Ir$')

UnboundLocalError Traceback (most recent call last)

in () 2 f = figure() 3 ax = f.add_subplot(111) ----> 4 srv.plot(kind='kde', ax=ax) 5 axvline(mr.I, color='r') 6 xlabel('I') /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/pandas/tools/plotting.py in plot_series(series, label, kind, use_index, rot, xticks, yticks, xlim, ylim, ax, style, grid, logy, **kwds) 591 label = series.name 592 --> 593 plot_obj = klass(series, kind=kind, rot=rot, logy=logy, 594 ax=ax, use_index=use_index, style=style, 595 xticks=xticks, yticks=yticks, xlim=xlim, ylim=ylim, UnboundLocalError: local variable 'klass' referenced before assignment
sjsrey commented 11 years ago

Fix consists of upgrading pandas:

 sudo /Library/Frameworks/Python.framework/Versions/7.3/bin/easy_install -U pandas