Why is notebook saying that there are no tests in myfactorial.factorial? I'm running the follow command:
!python -m doctest -v myfactorial.py
and it returns:
3 items had no tests:
myfactorial
myfactorial.factorial
myfactorial.test
0 tests in 3 items.
0 passed and 0 failed.
Test passed.
Signature: np.testing.assert_almost_equal(actual, desired, decimal=7, err_msg='', verbose=True)
Docstring:
Raises an AssertionError if two items are not equal up to desired
precision.
.. note:: It is recommended to use one of `assert_allclose`,
`assert_array_almost_equal_nulp` or `assert_array_max_ulp`
instead of this function for more consistent floating point
comparisons.
%pylab inline
to %matplotlib inline
, which no longer does from matplotlib.pyplot import *
by default. We'll have to fix that. Do you mind filing an issue against the github repo at http://github.com/profjsb/python-bootcamp?
df.index[df['rainfall'] > 0.0]