numpyで、配列中の特定のアイテムが何番目に有るか調べる方法いろいろ

boxheadroomboxheadroom のブックマーク 2009/01/11 14:33

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Is there a NumPy function to return the first index of something in an array?

    I know there is a method for a Python list to return the first index of something: >>> xs = [1, 2, 3] >>> xs.index(2) 1 Is there something like that for NumPy arrays?

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう