|
1 | 1 | 100 numpy exercises
|
2 |
| -===================================== |
| 2 | +=================== |
3 | 3 |
|
4 |
| -A joint effort of the numpy community |
5 |
| -------------------------------------- |
| 4 | +This is a collection of exercises that have been collected in the numpy mailing |
| 5 | +list, on stack overflow and in the numpy documentation. I've also created some |
| 6 | +to reach the 100 limit. The goal of this collection is to offer a quick |
| 7 | +reference for both old and new users but also to provide a set of exercices for |
| 8 | +those who teach. |
6 | 9 |
|
7 |
| -The goal is both to offer a quick reference for new and old users and to |
8 |
| -provide also a set of exercices for those who teach. If you remember having |
9 |
| -asked or answered a (short) problem, you can send a pull request. The format |
10 |
| -is: |
11 |
| - |
12 |
| -:: |
13 |
| - |
14 |
| - #. Find indices of non-zero elements from [1,2,0,0,4,0] |
15 |
| - |
16 |
| - .. code:: python |
17 |
| - |
18 |
| - # Author: Somebody |
19 |
| - |
20 |
| - print(np.nonzero([1,2,0,0,4,0])) |
21 |
| - |
22 |
| - |
23 |
| -Here is what the page looks like so far: |
24 |
| -http://www.labri.fr/perso/nrougier/teaching/numpy.100/index.html |
25 |
| - |
26 |
| -Repository is at: https://github.com/rougier/numpy-100 |
27 |
| - |
28 |
| -Thanks to Michiaki Ariga, there is now a |
29 |
| -`Julia version <https://github.com/chezou/julia-100-exercises>`_. |
| 10 | +If you find an error or think you've a better way to solve some of them, feel |
| 11 | +free to open an issue at https://github.com/rougier/numpy-100 |
30 | 12 |
|
31 | 13 |
|
32 | 14 | #. Import the numpy package under the name ``np`` (★☆☆)
|
|
0 commit comments