Search
Searching..
- numpy.ma.vstack
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.vstack...
- numpy.ma.vstack (Python data, in numpy.ma.vstack)
- Array creation
...re information and examples look at Copies and Views. There are a number of routines to join existing arrays e.g. numpy.vstack, numpy.hstack, and numpy.block. Here is an example of joining four 2-by-2 arrays into a 4-by-4 array using block:...
- Constants of the
numpy.ma
module...NumPy reference Array objects Masked arrays Constants of the numpy.ma module...
- Interoperability with NumPy
...ll as various NumPy-like implementations in deep learning frameworks, like TensorFlow and PyTorch. Similarly, there are many projects that build on top of the NumPy API for labeled and indexed arrays (XArray), automatic differentiation (JAX...
- NumPy 1.10.0 Release Notes
...gs. Addition of np.linalg.multi_dot: compute the dot product of two or more arrays in a single function call, while automatically selecting the fastest evaluation order. The new function np.stack provides a general interface for joining a s...
- NumPy 1.10.2 Release Notes
...is_fortran(a), that was using PyArray_ISFORTRAN to check for Fortran contiguity instead of PyArray_IS_F_CONTIGUOUS. You may want to regenerate swigged files using the updated numpy.i Deprecate views changing dimensions in fortran order Th...
- NumPy 1.10.4 Release Notes
...dows binaries. Compatibility notes The trace function now calls the trace method on subclasses of ndarray, except for matrix, for which the current behavior is preserved. This is to help with the units package of AstroPy and hopefully wil...
- NumPy 1.11.0 Release Notes
...2 - 3.5 and contains a number of enhancements and improvements. Note also the build system changes listed below as they may have subtle effects. No Windows (TM) binaries are provided for this release due to a broken toolchain. One of the pr...
- NumPy 1.11.1 Release Notes
...several build related improvements. Wheels for Linux, Windows, and OSX can be found on PyPI. Fixes Merged #7506 BUG: Make sure numpy imports on python 2.6 when nose is unavailable. #7530 BUG: Floating exception with invalid axis in np.le...
- NumPy 1.11.2 Release Notes
...ound on PyPI. Pull Requests Merged Fixes overridden by later merges and release notes updates are omitted. #7736 BUG: Many functions silently drop ‘keepdims’ kwarg. #7738 ENH: Add extra kwargs and update doc of many MA methods. #7778 DOC:...
- NumPy 1.12.0 Release Notes
...e NumPy 1.12.0 release contains a large number of fixes and improvements, but few that stand out above all others. That makes picking out the highlights somewhat arbitrary but the following may be of particular interest or indicate areas li...
- NumPy 1.12.1 Release Notes
...and OSX can be found on PyPI, Bugs Fixed BUG: Fix wrong future nat warning and equiv type logic error… BUG: Fix wrong masked median for some special cases DOC: Place np.average in inline code TST: Work around isfinite inconsistency on i38...
- NumPy 1.13.0 Release Notes
...if x > 0. np.block function for creating blocked arrays Add a new block function to the current stacking functions vstack, hstack, and stack. This allows concatenation across multiple axes simultaneously, with a similar syntax to array...
- NumPy 1.14.0 Release Notes
...tains a large number of bug fixes and new features, along with several changes with potential compatibility issues. The major change that users will notice are the stylistic changes in the way numpy arrays and scalars are printed, a change...
- NumPy 1.14.3 Release Notes
...lease. People with a “+” by their names contributed a patch for the first time. Allan Haldane Charles Harris Jonathan March + Malcolm Smith + Matti Picus Pauli Virtanen Pull requests merged A total of 8 pull requests were merged for th...
- NumPy 1.14.6 Release Notes
...fix release for bugs reported following the 1.14.5 release. The most significant fixes are: Fix for behavior change in ma.masked_values(shrink=True) Fix the new cached allocations machinery to be thread safe. The Python versions supported...
- NumPy 1.15.0 Release Notes
...NumPy 1.15.0 Release Notes NumPy 1.15.0 is a release with an unusual number of cleanups, many deprecations of old functions, and improvements to many existing functions. Please read the detailed descriptions b...
- NumPy 1.18.0 Release Notes
...r numpy.random has been defined and documented. Basic infrastructure for linking with 64 bit BLAS and LAPACK libraries. Many documentation improvements. New functions Multivariate hypergeometric distribution added to numpy.random The me...
- NumPy 1.20.2 Release Notes
...NumPy 1.20.2 Release Notes NumPy 1.20.2 is a bugfix release containing several fixes merged to the main branch after the NumPy 1.20.1 release. Contributors A total of 7 people contributed to this release. People with...
- NumPy 1.22.0 Release Notes
...tes NumPy 1.22.0 is a big release featuring the work of 153 contributors spread over 609 pull requests. There have been many improvements, highlights are: Annotations of the main namespace are essentially complete. Upstream is a moving tar...
- NumPy 1.23.0 Release Notes
...entation, and expire old deprecations. The highlights are: Implementation of loadtxt in C, greatly improving its performance. Exposing DLPack at the Python level for easy data exchange. Changes to the promotion and comparisons of structure...
- NumPy 1.24 Release Notes
...ck. To use them, write np.stack(..., dtype=None, casting='same_kind'). casting and dtype keyword arguments for numpy.vstack The casting and dtype keyword arguments are now available for numpy.vstack. To use them, write np.vstack(..., dt...
- NumPy 1.24.1 Release Notes
...NumPy 1.24.1 Release Notes NumPy 1.24.1 is a maintenance release that fixes bugs and regressions discovered after the 1.24.0 release. The Python versions supported b...
- NumPy 1.25.0 Release Notes
...ic (and positive is undefined). (gh-22998) A sequence must now be passed into the stacking family of functions (stack, vstack, hstack, dstack and column_stack). (gh-23019) np.clip now defaults to same-kind casting. Falling back to unsafe...
- NumPy 1.6.0 Release Notes
...time dtype support to deal with dates in arrays. A new 16-bit floating point type. A new iterator, which improves performance of many functions. New features New 16-bit floating point type This release adds support for the IEEE 754-2008...
- NumPy 1.6.2 Release Notes
...nsistent index #1138: allow creating arrays from empty buffers or empty slices #1446: correct note about correspondence vstack and concatenate #1149: make argmin() work for datetime #1672: fix allclose() to work for scalar inf #1747: make n...
- NumPy 1.7.2 Release Notes
...umber of array elements gh-2485: Fix for astype(‘S’) string truncate issue gh-3312: bug in count_nonzero gh-2684: numpy.ma.average casts complex to float under certain conditions gh-2403: masked array with named components does not behave a...
- NumPy 1.9.0 Release Notes
...e of converting lists containing arrays to arrays using np.array has been improved. It is now equivalent in speed to np.vstack(list). Performance improvement for np.searchsorted For the built-in numeric types, np.searchsorted no longer re...
- NumPy 1.9.2 Release Notes
...elease in the 1.9.x series. Issues fixed #5316: fix too large dtype alignment of strings and complex types #5424: fix ma.median when used on ndarrays #5481: Fix astype for structured array fields of different byte order #5354: fix segfaul...
- NumPy 2.0 migration guide
...removed in a release after 2.0: deprecated member migration guideline in1d Use np.isin instead. row_stack Use np.vstack instead (row_stack was an alias for vstack). trapz Use np.trapezoid or a scipy.integrate function instead. F...
- NumPy 2.0.0 Release Notes
...rate function instead. np.in1d has been deprecated. Use np.isin instead. Alias np.row_stack has been deprecated. Use np.vstack directly. (gh-24445) __array_wrap__ is now passed arr, context, return_scalar and support for implementations no...
- NumPy 2.0.1 Release Notes
...NumPy 2.0.1 Release Notes NumPy 2.0.1 is a maintenance release that fixes bugs and regressions discovered after the 2.0.0 release. NumPy 2.0.1 is the last planned...
- NumPy 2.1.0 Release Notes
...opt-out of this change. If you are experiencing problems due to an upstream header including NumPy, the solution is to make sure you #include "numpy/ndarrayobject.h" before their header and import NumPy yourself based on including-the-c-a...
- NumPy for MATLAB users
...stack((a,b)) or np.column_stack((a,b)) or np.c_[a,b] concatenate columns of a and b [a; b] np.concatenate((a,b)) or np.vstack((a,b)) or np.r_[a,b] concatenate rows of a and b max(max(a)) a.max() or np.nanmax(a) maximum element of a (with...
- NumPy quickstart
...y([[9., 7.], [5., 2.]]) >>> b = np.floor(10 * rg.random((2, 2))) >>> b array([[1., 9.], [5., 1.]]) >>> np.vstack((a, b)) array([[9., 7.], [5., 2.], [1., 9.], [5., 1.]]) >>> np.hstack((a, b)) array([[9., 7....
- numpy.array_repr
...numpy.array_repr numpy.array_repr(arr, max_line_width=None, precision=None, suppress_small=None)[source] Return the string representation of an array. Paramet...
- numpy.average
...ption, the result will broadcast correctly against the original a. Note: keepdims will not work with instances of numpy.matrix or other classes whose methods do not support keepdims. New in version 1.23.0. Returns: retval, [sum_of_wei...
- numpy.block
...e also concatenateJoin a sequence of arrays along an existing axis. stackJoin a sequence of arrays along a new axis. vstackStack arrays in sequence vertically (row wise). hstackStack arrays in sequence horizontally (column wise). dstac...
- numpy.column_stack
...st dimension. Returns: stacked2-D arrayThe array formed by stacking the given arrays. See also stack, hstack, vstack, concatenate Examples >>> import numpy as np >>> a = np.array((1,2,3)) >>> b = np.array((2,3,4)) >>> np.column_...
- numpy.concat
...rrays along a new axis. blockAssemble arrays from blocks. hstackStack arrays in sequence horizontally (column wise). vstackStack arrays in sequence vertically (row wise). dstackStack arrays in sequence depth wise (along third dimension)...
- numpy.concatenate
...rrays along a new axis. blockAssemble arrays from blocks. hstackStack arrays in sequence horizontally (column wise). vstackStack arrays in sequence vertically (row wise). dstackStack arrays in sequence depth wise (along third dimension)...
- numpy.dstack
...isting axis. stackJoin a sequence of arrays along a new axis. blockAssemble an nd-array from nested lists of blocks. vstackStack arrays in sequence vertically (row wise). hstackStack arrays in sequence horizontally (column wise). colum...
- numpy.hstack
...isting axis. stackJoin a sequence of arrays along a new axis. blockAssemble an nd-array from nested lists of blocks. vstackStack arrays in sequence vertically (row wise). dstackStack arrays in sequence depth wise (along third axis). co...
- numpy.linalg.lstsq
...an rewrite the line equation as y = Ap, where A = [[x 1]] and p = [[m], [c]]. Now use lstsq to solve for p: >>> A = np.vstack([x, np.ones(len(x))]).T >>> A array([[ 0., 1.], [ 1., 1.], [ 2., 1.], [ 3., 1.]]) >>>...
- numpy.ma.all
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.all...
- numpy.ma.allclose
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.allclose...
- numpy.ma.allequal
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.allequal...
- numpy.ma.amax
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.amax...
- numpy.ma.amin
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.amin...
- numpy.ma.anom
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.anom...
- numpy.ma.anomalies
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.anomalies...
- numpy.ma.any
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.any...
- numpy.ma.append
...previous numpy.ma.vstack next numpy.ma.make_mask...
- numpy.ma.apply_along_axis
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.apply_along_axis...
- numpy.ma.apply_over_axes
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.apply_over_axes...
- numpy.ma.arange
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.arange...
- numpy.ma.argmax
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.argmax...
- numpy.ma.argmin
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.argmin...
- numpy.ma.argsort
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.argsort...
- numpy.ma.around
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.around...
- numpy.ma.array
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.array...
- numpy.ma.asanyarray
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.asanyarray...
- numpy.ma.asarray
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.asarray...
- numpy.ma.atleast_1d
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.atleast_1d...
- numpy.ma.atleast_2d
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.atleast_2d...
- numpy.ma.atleast_3d
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.atleast_3d...
- numpy.ma.average
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.average...
- numpy.ma.choose
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.choose...
- numpy.ma.clip
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.clip...
- numpy.ma.clump_masked
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.clump_masked...
- numpy.ma.clump_unmasked
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.clump_unmasked...
- numpy.ma.column_stack
...st dimension. Returns: stacked2-D arrayThe array formed by stacking the given arrays. See also stack, hstack, vstack, concatenate Notes The function is applied to both the _data and the _mask, if any. Examples >>> import numpy a...
- numpy.ma.common_fill_value
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.common_fill_value...
- numpy.ma.compress_cols
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.compress_cols...
- numpy.ma.compress_nd
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.compress_nd...
- numpy.ma.compress_rowcols
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.compress_rowcols...
- numpy.ma.compress_rows
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.compress_rows...
- numpy.ma.compressed
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.compressed...
- numpy.ma.concatenate
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.concatenate...
- numpy.ma.conjugate
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.conjugate...
- numpy.ma.convolve
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.convolve...
- numpy.ma.copy
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.copy...
- numpy.ma.corrcoef
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.corrcoef...
- numpy.ma.correlate
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.correlate...
- numpy.ma.count
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.count...
- numpy.ma.count_masked
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.count_masked...
- numpy.ma.cov
- numpy.ma.cumprod
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.cumprod...
- numpy.ma.cumsum
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.cumsum...
- numpy.ma.default_fill_value
- numpy.ma.diag
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.diag...
- numpy.ma.diagflat
- numpy.ma.diff
- numpy.ma.dot
- numpy.ma.dstack
- numpy.ma.ediff1d
- numpy.ma.empty
- numpy.ma.empty_like
- numpy.ma.expand_dims
- numpy.ma.filled
- numpy.ma.fix_invalid
- numpy.ma.flatnotmasked_contiguous
- numpy.ma.flatnotmasked_edges
- numpy.ma.flatten_mask
- numpy.ma.flatten_structured_array
- numpy.ma.frombuffer
- numpy.ma.fromflex
- numpy.ma.fromfunction
- numpy.ma.getdata
- numpy.ma.getmask
- numpy.ma.getmaskarray
- numpy.ma.harden_mask
- numpy.ma.hsplit
- numpy.ma.hstack
- numpy.ma.identity
- numpy.ma.in1d
- numpy.ma.indices
- numpy.ma.inner
- numpy.ma.innerproduct
- numpy.ma.intersect1d
- numpy.ma.is_mask
- numpy.ma.is_masked
- numpy.ma.isarray
- numpy.ma.isin
- numpy.ma.isMA
- numpy.ma.isMaskedArray
- numpy.ma.left_shift
- numpy.ma.make_mask
- numpy.ma.make_mask_descr
- numpy.ma.make_mask_none
- numpy.ma.mask_cols
- numpy.ma.mask_or
- numpy.ma.mask_rowcols
- numpy.ma.mask_rows
- numpy.ma.masked_all
- numpy.ma.masked_all_like
- numpy.ma.masked_array