Skip to content

Commit 8b95249

Browse files
committed
add full reference for np.array to extract scalar
1 parent bac781b commit 8b95249

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dask-worker-space
55

66
.vscode/
77
.ipynb_checkpoints/
8+
.virtual_documents/
89

910
lectures/mathfoo.py
1011
lectures/mod.py

lectures/numpy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ row, column = a.shape
709709
result = np.empty((3, 3))
710710
for i in range(row):
711711
for j in range(column):
712-
result[i, j] = a[i, j] + b[i]
712+
result[i, j] = a[i, j] + b[i,0]
713713
714714
result
715715
```

0 commit comments

Comments
 (0)