Skip to content

Commit f70e4b8

Browse files
committed
Cosmetic fixes
1 parent be67f6a commit f70e4b8

File tree

2 files changed

+13
-28
lines changed

2 files changed

+13
-28
lines changed

100 Numpy exercises.rst

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,14 @@
11
100 numpy exercises
2-
=====================================
2+
===================
33

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.
69

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
3012

3113

3214
#. Import the numpy package under the name ``np`` (★☆☆)

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
## 100 numpy exercises
22

3+
[![Binder](http://mybinder.org/badge.svg)](http://mybinder.org:/repo/rougier/numpy-100)
4+
35
This is a collection of exercises that have been collected in the numpy mailing
46
list, on stack overflow and in the numpy documentation. I've also created some
57
to reach the 100 limit. The goal of this collection is to offer a quick
68
reference for both old and new users but also to provide a set of exercices for
79
those who teach.
810

9-
[![Binder](http://mybinder.org/badge.svg)](http://mybinder.org:/repo/rougier/numpy-100)
11+
[Test them on Binder](http://mybinder.org:/repo/rougier/numpy-100)
12+
[Read them on GitHub](100 Numpy exercises.rst)
13+
1014

11-
[Link to exercices](100 Numpy exercises.rst)

0 commit comments

Comments
 (0)