0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NumPyの集合関数

Posted at

Numpyの集合関数

・配列要素から重複を取り除きソートした結果を返す
 np.unique()

・配列xとyのうち少なくとも一方に存在する要素を取り出しソートする
 np.union1d(x, y)(和集合)

・配列xとyのうち共通する要素を取り出しソートする
 np.intersect1d(x, y)(積集合)

・配列xと配列yに共通する要素を配列xから取り除きソートする
 np.setdiff1d(x, y)(差集合) など

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?