Search
Search Results
Search finished, found 35 page(s) matching the search query.
- numpy.memmap.data
...numpy.memmap.data...
- numpy.memmap.data (Python attribute, in numpy.memmap.data)
- NumPy 1.12.0 Release Notes
...preserved, instead of being reordered to match that of the directories. Deprecations Assignment of ndarray object’s data attribute Assigning the ‘data’ attribute is an inherently unsafe operation as pointed out in gh-7083. Such a capabi...
- NumPy 1.13.0 Release Notes
...ng numpy.unique. The original behaviour is recovered if axis=None (default). np.gradient now supports unevenly spaced data Users can now specify a not-constant spacing for data. In particular np.gradient can now take: A single scalar to...
- NumPy 1.25.0 Release Notes
...output dtype using the dtype kwarg can make the operation succeed, but we do not recommend it. (gh-22707) When loading data from a file handle using np.load, if the handle is at the end of file, as can happen when reading multiple arrays b...
- NumPy 1.6.0 Release Notes
...tures New 16-bit floating point type This release adds support for the IEEE 754-2008 binary16 format, available as the data type numpy.half. Within Python, the type behaves similarly to float or double, and C extensions can add support fo...
- NumPy 1.7.2 Release Notes
...of mmap slicing gh-3421: fix non-swapping strided copies in GetStridedCopySwap gh-3373: fix small leak in datetime metadata initialization gh-2791: add platform specific python include directories to search paths gh-3168: fix undefined fun...
- NumPy 2.0.0 Release Notes
...vior was changed by adopting NEP 50. This fixes many user surprises about promotions which previously often depended on data values of input arrays rather than only their dtypes. Please see the NEP and the NumPy 2.0 migration guide for det...
- NumPy 2.2.0 Release Notes
.... Thus should generally improve performance. (gh-27808) Changes numpy.fix now won’t perform casting to a floating data-type for integer and boolean data-type input arrays. (gh-26766) The type annotations of numpy.float64 and numpy.co...
- numpy.lib.Arrayterator
...y_likeThe object to iterate over. buf_sizeint, optionalThe buffer size. If buf_size is supplied, the maximum amount of data that will be read into memory is buf_size elements. Default is None, which will read as many element as possible in...
- numpy.lib.format.open_memmap
- numpy.load
...les that contain object arrays uses the pickle module, which is not secure against erroneous or maliciously constructed data. Consider passing allow_pickle=False to load data that is known not to contain object arrays for the safer handling...
- numpy.memmap
...arameters: filenamestr, file-like object, or pathlib.Path instanceThe file name or file object to be used as the array data buffer. dtypedata-type, optionalThe data-type used to interpret the file contents. Default is uint8. mode{‘r+’, ‘...
- numpy.memmap.astype
...unsafe', subok=True, copy=True) Copy of the array, cast to a specified type. Parameters: dtypestr or dtypeTypecode or data-type to which the array is cast. order{‘C’, ‘F’, ‘A’, ‘K’}, optionalControls the memory layout order of the result...
- numpy.memmap.byteswap
...p method memmap.byteswap(inplace=False) Swap the bytes of the array elements Toggle between low-endian and big-endian data representation by returning a byteswapped array, optionally swapped in-place. Arrays of byte-strings are not swappe...
- numpy.memmap.ctypes
...es it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctypes objects that can be used as argumen...
- numpy.memmap.data
...numpy.memmap.data...
- numpy.memmap.dtype
...numpy.memmap.dtype attribute memmap.dtype Data-type of the array’s elements. Warning Setting arr.dtype is discouraged and may be deprecated in the future. Setti...
- numpy.memmap.flags
- numpy.memmap.getfield
- numpy.memmap.item
...tandard Python scalar objectA copy of the specified element of the array as a suitable Python scalar Notes When the data type of a is longdouble or clongdouble, item() returns a scalar array object because there is no available Python s...
- numpy.memmap.reshape
- numpy.memmap.resize
...reference count will not be checked. Default is True. Returns: None Raises: ValueErrorIf a does not own its own data or references or views to it exist, and the data memory must be changed. PyPy only: will always raise if the data m...
- numpy.memmap.setfield
...mmap.setfield method memmap.setfield(val, dtype, offset=0) Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and beginning offset bytes into the field. Parameters: valobjectV...
- numpy.memmap.setflags
- numpy.memmap.strides
- numpy.memmap.tobytes
- numpy.memmap.tofile
...numpy.memmap.tofile method memmap.tofile(fid, sep='', format='%s') Write array to a file as text or binary (default). Data is always written in ‘C’ order, independent of the order of a. The data produced by this method can be recovered us...
- numpy.memmap.tolist
- numpy.memmap.transpose
- numpy.memmap.view
...numpy.memmap.view method memmap.view([dtype][, type]) New view of array with the same data. Note Passing None for dtype is different from omitting the parameter, since the former invokes dtype(None) which...
- Reading and writing files
...1, 2, 3 4,, 6 7, 8, 9 Masked-array output >>> np.genfromtxt("csv.txt", delimiter=",", usemask=True) masked_array( data=[[1.0, 2.0, 3.0], [4.0, --, 6.0], [7.0, 8.0, 9.0]], mask=[[False, False, False], [False,...
- Standard array subclasses
- Structured arrays
...Structured arrays Introduction Structured arrays are ndarrays whose datatype is a composition of simpler datatypes organized as a sequence of named fields. For example, >>> x = np.array([(...
- Subclassing ndarray
...problematic if the subclass information is ignored or lost silently. An example is np.memmap where “forgetting” about data being memory mapped cannot lead to a wrong result. An example of a subclass that sometimes confuses users are NumPy...