0
0

More than 3 years have passed since last update.

Numpy操作いろいろ(修正)

Last updated at Posted at 2019-12-14

このページについて

 いくつか自分で調べた機能を記述していきます。



特定条件の部分を抜き出す

 Trueのみを抜き出す。Falseは否定で対応する。

array[a == b,:]
array[a != b,:]

その他評価式が使えます。

参考サイト
python の配列。要素をまとめて論理演算。not、and、or、xor
NumPy配列ndarrayから条件を満たす要素・行・列を抽出、削除


numpyの配列の大きさだけForを回す

for i in range(array.shape[0]):

参考サイト
Pythonでリストとタプルを相互に変換するlist(), tuple()

0
0
1

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