Commit 31d071af authored by Abraham Flaxman's avatar Abraham Flaxman Committed by Maxim Belkin
Browse files

01-numpy.md: use numpy.max(x) rather than x.max()

Pull Request: swcarpentry/python-novice-inflammation#601
parent ff120aaf
......@@ -619,7 +619,7 @@ then ask it to do the calculation:
~~~
patient_0 = data[0, :] # 0 on the first axis (rows), everything on the second (columns)
print('maximum inflammation for patient 0:', patient_0.max())
print('maximum inflammation for patient 0:', numpy.max(patient_0))
~~~
{: .language-python}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment