Older articles


  1. Using NumPy masked arrays

    In NumPy, masked arrays are quite handy. Say you want to find the index of the smallest positive entry of an array. Doing a[a>0].argmin() doesn't work, because you're removing all the non-positive numbers from a, so you're computing argmin over the wrong array.

    Masked ...

    read more
  2. Page 1 / 1

Follow

atom feed twittergithubgplus