{"version":"1.0","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","blog_url":"https://python-remrin.hatenadiary.jp/","width":"100%","description":"NumPy\u306e\u96c6\u5408\u95a2\u6570\u306b\u3064\u3044\u3066\u3002 python\u6a19\u6e96\u306eset\u578b\u3082\u53c2\u7167\u3002 1\u6b21\u5143\u914d\u5217\u3092\u5bfe\u8c61\u3068\u3057\u305f\u96c6\u5408\u95a2\u6570 unique(x) \u91cd\u8907\u3092\u9664\u5916\u3057\u3001\u30bd\u30fc\u30c8\u3057\u305f\u914d\u5217 in1d(x,y) x\u306e\u5404\u8981\u7d20\u304cy\u306b\u5b58\u5728\u3059\u308b\u304b intersect1d(x, ) \u5171\u901a\u90e8\u5206\u3002\u7a4d\u96c6\u5408 union1d(x, y) \u548c\u96c6\u5408 setdiff1d(x, y) \u5dee\u96c6\u5408 setxor1d(x, y) \u6392\u4ed6\u7684\u8ad6\u7406\u548c np.unique() 1\u6b21\u5143\u306e\u914d\u5217\u304b\u3089\u91cd\u8907\u3092\u53d6\u308a\u9664\u304d\u3001\u30bd\u30fc\u30c8\u3057\u305f\u914d\u5217\u3092\u8fd4\u3059\u3002 python\u6a19\u6e96\u306esorted(set(seq))\u3068\u540c\u69d8\u306e\u50cd\u304d\u3002 import numpy as np a1 = np.array([1, 3, 2,\u2026","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","title":"NumPy\u306e\u4f7f\u3044\u65b9\uff08\uff11\uff10\uff09\u3000\u96c6\u5408\u95a2\u6570","categories":["numpy","\u30e9\u30a4\u30d6\u30e9\u30ea","python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F12%2F174819\" title=\"NumPy\u306e\u4f7f\u3044\u65b9\uff08\uff11\uff10\uff09\u3000\u96c6\u5408\u95a2\u6570 - Remrin\u306epython\u653b\u7565\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","published":"2017-05-12 17:48:19","image_url":null,"type":"rich","provider_url":"https://hatena.blog","author_name":"rare_Remrin","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/12/174819"}