We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97efcfc commit 5d583bfCopy full SHA for 5d583bf
numpy_questions.py
@@ -38,7 +38,7 @@ def max_index(X):
38
If the input is not a numpy array or
39
if the shape is not 2D.
40
"""
41
- if "numpy" in str(type(X)):
+ if "numpy" not in str(type(X)):
42
raise ValueError('None')
43
if X.ndim != 2:
44
raise ValueError('Not in 2D')
@@ -76,4 +76,4 @@ def wallis_product(n_terms):
76
resultat = 2
77
for k in range(n_terms):
78
resultat = resultat*(4*((k+1)**2)/((4*((k+1)**2)-1)))
79
- return resultat
+ return resultat
0 commit comments