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).
- 13:46, 17 October 2025 Davrot talk contribs created page Trim Zeros of a 1d array (Created page with "== Top == Questions to [mailto:davrot@uni-bremen.de David Rotermund] == [https://numpy.org/doc/stable/reference/generated/numpy.trim_zeros.html numpy.trim_zeros] == <syntaxhighlight lang="python">numpy.trim_zeros(filt, trim='fb')</syntaxhighlight><blockquote>Trim the leading and/or trailing zeros from a 1-D array or sequence.</blockquote><syntaxhighlight lang="python">import numpy as np a = np.arange(0, 10) b = np.zeros((5), dtype=np.int64) c = np.r_[b, a, b] print(c)...") Tag: Visual edit