Skip to content

Commit 7375daf

Browse files
author
Akshita Kumar
committed
Edits to follow flake8 convention.
1 parent 7f76c84 commit 7375daf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

numpy_questions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ def max_index(X):
4242

4343
if X is None:
4444
raise ValueError("Input is None")
45-
45+
4646
if not isinstance(X, np.ndarray):
4747
raise ValueError("Input is not a valid numpy array")
48-
48+
4949
if len(X.shape) != 2:
5050
raise ValueError("Input shape is not 2D")
51-
51+
5252
max_val = X[i, j]
53-
53+
5454
for row_idx in range(X.shape[0]):
5555
for col_idx in range(X.shape[1]):
5656
if X[row_idx, col_idx] > max_val:

0 commit comments

Comments
 (0)