Skip to content

Commit 497f204

Browse files
committed
adding info on the required Numpy version to the recenlty added solution
1 parent b74eeca commit 497f204

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

100 Numpy exercises.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@
14361436
"outputs": [],
14371437
"source": [
14381438
"A = np.random.randint(0,10,(3,4,3,4))\n",
1439-
"# solution by passing a tuple of axes\n",
1439+
"# solution by passing a tuple of axes (introduced in numpy 1.7.0)\n",
14401440
"sum = A.sum(axis=(-2,-1))\n",
14411441
"print(sum)\n",
14421442
"# solution by flattening the last two dimensions into one\n",

100 Numpy exercises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ print(np.unique(I))
693693

694694
```python
695695
A = np.random.randint(0,10,(3,4,3,4))
696-
# solution by passing a tuple of axes
696+
# solution by passing a tuple of axes (introduced in numpy 1.7.0)
697697
sum = A.sum(axis=(-2,-1))
698698
print(sum)
699699
# solution by flattening the last two dimensions into one

0 commit comments

Comments
 (0)