pyarrow.Tensor

class pyarrow.Tensor

Bases: pyarrow.lib._Weakrefable

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

__init__(*args, **kwargs)

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

Methods

__init__(*args, **kwargs)

Initialize self.

dim_name(self, i)

equals(self, Tensor other)

Return true if the tensors contains exactly equal data

from_numpy(obj[, dim_names])

to_numpy(self)

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

Attributes

dim_names

is_contiguous

is_mutable

ndim

shape

size

strides

type

dim_name(self, i)
dim_names
equals(self, Tensor other)

Return true if the tensors contains exactly equal data

static from_numpy(obj, dim_names=None)
is_contiguous
is_mutable
ndim
shape
size
strides
to_numpy(self)

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

type