From 497f20491494151fccda9e12c61b6f8e17f99556 Mon Sep 17 00:00:00 2001 From: ibah Date: Wed, 28 Sep 2016 09:32:10 +0200 Subject: [PATCH] adding info on the required Numpy version to the recenlty added solution --- 100 Numpy exercises.ipynb | 2 +- 100 Numpy exercises.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/100 Numpy exercises.ipynb b/100 Numpy exercises.ipynb index 978d58e..cff2a78 100644 --- a/100 Numpy exercises.ipynb +++ b/100 Numpy exercises.ipynb @@ -1436,7 +1436,7 @@ "outputs": [], "source": [ "A = np.random.randint(0,10,(3,4,3,4))\n", - "# solution by passing a tuple of axes\n", + "# solution by passing a tuple of axes (introduced in numpy 1.7.0)\n", "sum = A.sum(axis=(-2,-1))\n", "print(sum)\n", "# solution by flattening the last two dimensions into one\n", diff --git a/100 Numpy exercises.md b/100 Numpy exercises.md index 8ba09c3..2a1e55b 100644 --- a/100 Numpy exercises.md +++ b/100 Numpy exercises.md @@ -693,7 +693,7 @@ print(np.unique(I)) ```python A = np.random.randint(0,10,(3,4,3,4)) -# solution by passing a tuple of axes +# solution by passing a tuple of axes (introduced in numpy 1.7.0) sum = A.sum(axis=(-2,-1)) print(sum) # solution by flattening the last two dimensions into one