Skip to content

Commit 6c26468

Browse files
authored
Merge pull request rougier#57 from MikeBloom914/patch-1
Update with corrected answer rougier#53
2 parents f056872 + a8ec85d commit 6c26468

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

100 Numpy exercises.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,8 +1113,8 @@
11131113
},
11141114
"outputs": [],
11151115
"source": [
1116-
"Z = np.arange(10, dtype=np.int32)\n",
1117-
"Z = Z.astype(np.float32, copy=False)\n",
1116+
"Z = np.arange(10, dtype=np.float32)\n",
1117+
"Z = Z.astype(np.int32, copy=False)\n",
11181118
"print(Z)"
11191119
]
11201120
},

100 Numpy exercises.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@ print(D)
527527

528528

529529
```python
530-
Z = np.arange(10, dtype=np.int32)
531-
Z = Z.astype(np.float32, copy=False)
530+
Z = np.arange(10, dtype=np.float32)
531+
Z = Z.astype(np.int32, copy=False)
532532
print(Z)
533533
```
534534

0 commit comments

Comments
 (0)