Main public logs
From Master of Neuroscience Wiki
Combined display of all available logs of Master of Neuroscience Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 12:46, 17 October 2025 Davrot talk contribs created page Advanced Indexing (Created page with "== The goal == Beside slicing there is something called advanced indexing Questions to [mailto:davrot@uni-bremen.de David Rotermund] == [https://numpy.org/doc/stable/user/basics.indexing.html#boolean-array-indexing Boolean Array​] == We can use Boolean arrays for more complicate indexing:<syntaxhighlight lang="python">import numpy as np a = np.arange(1,10).reshape(3,3) b = np.zeros_like(a) b[a.sum(axis=1) > 6, :] = 1 print(a) print() print(b)</syntaxhighlight>Outp...") Tag: Visual edit