Skip to content

Commit fed416d

Browse files
authored
numpy_questions.py
1 parent 4c007fb commit fed416d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

numpy_questions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def max_index(X):
4444
raise ValueError("Input must be a numpy array.")
4545
if X.ndim != 2:
4646
raise ValueError("Input array must be 2D.")
47-
48-
(i,j) = np.unravel_index(np.argmax(X, axis=None), X.shape)
47+
(i, j) = np.unravel_index(np.argmax(X, axis=None), X.shape)
4948
return i, j
5049

5150

0 commit comments

Comments
 (0)