User Tools

Site Tools


other:python:misc_by_jyp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:python:misc_by_jyp [2023/05/04 15:25]
jypeter [Numerical values] Lots of changes
other:python:misc_by_jyp [2023/09/27 13:53]
jypeter Added a section with a link to "100 numpy exercises"
Line 452: Line 452:
 array([3. , 4.5, 8. ])</​code>​ array([3. , 4.5, 8. ])</​code>​
  
 +==== Exercise your brain with numpy ====
 +
 +Have a look at [[https://​github.com/​rougier/​numpy-100/​blob/​master/​100_Numpy_exercises.ipynb|100 numpy exercises]]
  
 ===== matplotlib related stuff ===== ===== matplotlib related stuff =====
Line 536: Line 539:
         * Infinity         * Infinity
           * Python: ''​-numpy.inf''​ and ''​numpy.inf''​           * Python: ''​-numpy.inf''​ and ''​numpy.inf''​
-        * Note: it is cleaner to use masks (and [[https://​numpy.org/​doc/​stable/​reference/​maskedarray.generic.html|Numpy masked arrays]]) than NaNs, when you have to deal with missing values !+        * Note: it is cleaner to use masks (and [[https://​numpy.org/​doc/​stable/​reference/​maskedarray.generic.html|Numpy masked arrays]]) ​rather ​than ''​NaN''​s, when you have to deal with missing values !
       * <wrap hi>The RISKS of working with (the wrong) floats</​wrap>:​       * <wrap hi>The RISKS of working with (the wrong) floats</​wrap>:​
         * [[https://​en.wikipedia.org/​wiki/​Round-off_error|Round-off error]]         * [[https://​en.wikipedia.org/​wiki/​Round-off_error|Round-off error]]
other/python/misc_by_jyp.txt · Last modified: 2024/04/19 12:02 by jypeter