You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have the full path to a notebook in your or Richard's home directory where the problem is evident? In the sample code you provided, data is not defined.
The instructor confirmed that inserting numpy.int = numpy.int_ before the call to .hist() is an adequate workaround. He will notify students to have them modify their notebooks.
The larger issue #5117 about unexpected versions is still outstanding.
Bug description
This code worked fine a few days ago. Prof suspects it’s due to a library version change or similar. Need a fix for UGBA88 students’ lab work.
Environment & setup
How to reproduce
Import some useful functions
from numpy import *
from numpy.random import *
from datascience import *
from statsmodels.formula.api import *
Define some useful functions
def correlation (array_1, array_2):
return corrcoef(array_1, array_2) •item(1)
Customize Look of graphics
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')
plt.rcParams['figure.dpi' ] = 60
%matplotlib inline
Force display of all values
from IPython.core. interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
Handle some obnoxious warning messages
import warnings
warnings. filterwarnings ("ignore")
data.hist('AMOUNT', normed=False, bins=10, range=make_array(0,100))
#Error message attached.
The text was updated successfully, but these errors were encountered: