npstreams.ArrayStream¶
- class npstreams.ArrayStream(stream)¶
Iterator of arrays. Elements from the stream are converted to NumPy arrays. If
stream
is a single array, it will be repackaged as a length 1 iterable.Arrays in the stream will be cast to the same data-type as the first array in the stream. The stream data-type is located in the dtype attribute.
New in version 1.5.2.
- __init__(stream)¶
Methods
__array__
()Returns a dense array created from this stream.
__delattr__
(name, /)Implement delattr(self, name).
__dir__
()Default dir() implementation.
__eq__
(value, /)Return self==value.
__format__
(format_spec, /)Default object formatter.
__ge__
(value, /)Return self>=value.
__getattribute__
(name, /)Return getattr(self, name).
__gt__
(value, /)Return self>value.
__hash__
()Return hash(self).
__init__
(stream)__init_subclass__
This method is called when a class is subclassed.
__iter__
()__le__
(value, /)Return self<=value.
__length_hint__
()In certain cases, an ArrayStream can have a definite size.
__lt__
(value, /)Return self<value.
__ne__
(value, /)Return self!=value.
__new__
(**kwargs)__next__
()Return the next item from the iterator.
__reduce__
()Helper for pickle.
__reduce_ex__
(protocol, /)Helper for pickle.
__repr__
()Verbose string representation
__setattr__
(name, value, /)Implement setattr(self, name, value).
__sizeof__
()Size of object in memory, in bytes.
__str__
()Return str(self).
__subclasshook__
(C)Abstract classes can override this to customize issubclass().
Attributes
__abstractmethods__
__slots__
_abc_impl