User Tools

Site Tools


other:python:jyp_steps

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 Both sides next revision
other:python:jyp_steps [2022/02/21 13:27]
jypeter [Extra numpy information] Added link to useful stuff page and sorting routines page
other:python:jyp_steps [2022/06/15 13:05]
jypeter [Extra numpy information] Added np vs np.ma warning
Line 144: Line 144:
   * [[https://​numpy.org/​doc/​stable/​user/​misc.html#​ieee-754-floating-point-special-values|Dealing with special numerical values]] (//Nan//, //inf//)   * [[https://​numpy.org/​doc/​stable/​user/​misc.html#​ieee-754-floating-point-special-values|Dealing with special numerical values]] (//Nan//, //inf//)
     * If you know that your data has missing values, it is cleaner and safer to handle them with [[https://​numpy.org/​doc/​stable/​reference/​maskedarray.html|masked arrays]]!     * If you know that your data has missing values, it is cleaner and safer to handle them with [[https://​numpy.org/​doc/​stable/​reference/​maskedarray.html|masked arrays]]!
 +    * If you know that some of your data //may// have masked values, play safe by explicitly using ''​np.ma.some_function()''​ rather than just ''​np.some_function()''​
 +      * More details in the [[https://​github.com/​numpy/​numpy/​issues/​18675|Why/​when does np.something remove the mask of a np.ma array ?]] discussion
     * [[https://​numpy.org/​doc/​stable/​user/​misc.html#​how-numpy-handles-numerical-exceptions|Handling numerical exceptions]]     * [[https://​numpy.org/​doc/​stable/​user/​misc.html#​how-numpy-handles-numerical-exceptions|Handling numerical exceptions]]
     * [[https://​numpy.org/​doc/​stable/​reference/​routines.err.html|Floating point error handling]]     * [[https://​numpy.org/​doc/​stable/​reference/​routines.err.html|Floating point error handling]]
other/python/jyp_steps.txt · Last modified: 2024/03/07 10:15 by jypeter