pyarrow.Tensor

class pyarrow.Tensor

Bases: object

A n-dimensional array a.k.a Tensor.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

equals(self, Tensor other) Return true if the tensors contains exactly equal data
from_numpy(obj)
to_numpy(self) Convert arrow::Tensor to numpy.ndarray with zero copy

Attributes

is_contiguous
is_mutable
ndim
shape
size
strides
type
equals(self, Tensor other)

Return true if the tensors contains exactly equal data

static from_numpy(obj)
is_contiguous
is_mutable
ndim
shape
size
strides
to_numpy(self)

Convert arrow::Tensor to numpy.ndarray with zero copy

type