{"provider_name":"Hatena Blog","width":"100%","type":"rich","height":"190","author_url":"https://blog.hatena.ne.jp/yuta-nakata/","author_name":"yuta-nakata","published":"2025-06-15 13:55:18","title":"\u3010Python/NumPy\u3011MaskedArray\u3068ndarray\u306e\u9055\u3044\u3068\u6ce8\u610f\u70b9\uff5c\u30c7\u30fc\u30bf\u6b20\u640d\u51e6\u7406\u306e\u843d\u3068\u3057\u7a74","categories":["Python","Numpy"],"blog_url":"https://www.yuta-nakata.net/","url":"https://www.yuta-nakata.net/entry/2025/06/15/135518","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2025%2F06%2F15%2F135518\" title=\"\u3010Python/NumPy\u3011MaskedArray\u3068ndarray\u306e\u9055\u3044\u3068\u6ce8\u610f\u70b9\uff5c\u30c7\u30fc\u30bf\u6b20\u640d\u51e6\u7406\u306e\u843d\u3068\u3057\u7a74 - Yuta Nakata\u306eBlog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Yuta Nakata\u306eBlog","description":"NumPy\u3067\u6b20\u640d\u5024\u3092\u30de\u30b9\u30af\u3057\u3066\u8a08\u7b97\u3057\u305f\u3089\u3001data[~data.mask]\u3068data.data[~data.mask]\u3067\u7d50\u679c\u304c\u5fae\u5999\u306b\u5909\u308f\u3063\u3066\u56f0\u3063\u305f\u3001\u3068\u3044\u3046\u8a71\u3067\u3059\u3002 \u5f53\u6642\u306f\u300cint\u3068float\u306e\u9055\u3044\u304c\u539f\u56e0\u300d\u3067\u7d42\u308f\u3089\u305b\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u30012026\u5e747\u6708\u306b\u6539\u3081\u3066\u8abf\u3079\u76f4\u3057\u305f\u3068\u3053\u308d\u3001\u539f\u56e0\u306f2\u3064\u3042\u308a\u3001\u3057\u304b\u3082\u7247\u65b9\u306fNumPy\u5074\u306b\u672a\u89e3\u6c7a\u306e\u30d0\u30b0\u3068\u3057\u3066\u5831\u544a\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3057\u305f\u3002\u5f53\u6642\u306e\u5185\u5bb9\u3092\u6b8b\u3057\u305f\u307e\u307e\u3001\u539f\u56e0\u306e\u89e3\u8aac\u3068\u5b89\u5168\u306a\u66f8\u304d\u65b9\u3092\u5927\u5e45\u306b\u52a0\u7b46\u3057\u3066\u3044\u307e\u3059\u3002 \u56f0\u3063\u305f\u70b9 \u539f\u56e01: np.ma\u306fPython\u306e\u6570\u5024\u3092\u300c\u5f31\u3044\u30b9\u30ab\u30e9\u30fc\u300d\u3068\u3057\u3066\u6271\u3063\u3066\u304f\u308c\u306a\u3044 \u539f\u56e02: \u30de\u30b9\u30af\u304c1\u3064\u3082\u306a\u3044\u3068data.mask\u306f\u914d\u5217\u3067\u306f\u306a\u304fFalse\u306b\u306a\u308b \u2026"}