Skip to content

Instantly share code, notes, and snippets.

@Roger8
Created January 24, 2019 02:27
Show Gist options
  • Save Roger8/da596d93e08eb33977a039a71eda6262 to your computer and use it in GitHub Desktop.
Save Roger8/da596d93e08eb33977a039a71eda6262 to your computer and use it in GitHub Desktop.
numpy 多条件查找
#numpy 多条件查找
np.where((log[:,1]==3) | (log[:,1]==4))
#或者
np.logical_or(log[:,1]==3 , log[:,1]==4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment