Finding type of elements of a numpy array#269
Finding type of elements of a numpy array#269tbekolay merged 1 commit intoswcarpentry:gh-pagesfrom Mahdisadjadi:gh-pages
Conversation
Add a few lines to find out the type of elements (e.g floats, ints) in numpy arrays.
|
Currently, we don't talk about the distinction between integers and floating point numbers in the first NumPy topic, though we do talk about it in a later topic. What do you think the benefit of introducing this early on is? The NumPy topic already as a lot of material in it, many have argued too much, so I would be much more keen on removing material from this topic than adding material to it. |
|
Yes that's right we talk about them in |
|
But given that at this point in the lesson we have not introduced the difference between integers and floating point numbers, is the type of the array meaningful to students at this point? Perhaps discussing the |
|
Actually Creating Functions lesson talks about |
|
Hmm, perhaps the callout box makes more sense right after the "Integer division" callout? That's the only place where we're really explicitly talking about integers and floats. |
|
OK, I think I'm convinced that this is the right place since this is where we use the |
Fixed links in _extras/exercises.md that were lost.
Remove unnecessary super call
Add a few lines to find out the type of elements (e.g floats, ints) in numpy arrays after mentioning
shapeand attributes of an array.