bolt/spark/shapes.py
def reshape(self, *shape):
        """
        Reshape just the values of a BoltArraySpark, returning a
        new BoltArraySpark.

        Parameters
        ----------
        shape : tuple
              New proposed axes.
        """
        new = argpack(shape)
        old = self.shape
        isreshapeable(new, old)

        if new == old:
            return self._barray

        def f(v):
            return v.reshape(new)

        newrdd = self._barray._rdd.mapValues(f)
        newshape = self._barray.keys.shape + new

        return BoltArraySpark(newrdd, shape=newshape).__finalize__(self._barray)
def reshape(self, *shape):
        """
        Reshape just the values of a BoltArraySpark, returning a
        new BoltArraySpark.

        Parameters
        ----------
        shape : tuple
              New proposed axes.
        """
        new = argpack(shape)
        old = self.shape
        isreshapeable(new, old)

        if new == old:
            return self._barray

        def f(v):
            return v.reshape(new)

        newrdd = self._barray._rdd.mapValues(f)
        newshape = self._barray.keys.shape + new

        return BoltArraySpark(newrdd, shape=newshape).__finalize__(self._barray)
def reshape ( self , * shape ) : new = argpack ( shape ) old = self . shape isreshapeable ( new , old ) if new == old : return self . _barray def f ( v ) : return v . reshape ( new ) newrdd = self . _barray . _rdd . mapValues ( f ) newshape = self . _barray . keys . shape + new return BoltArraySpark ( newrdd , shape = newshape ) . __finalize__ ( self . _barray )
Reshape just the values of a BoltArraySpark, returning a
        new BoltArraySpark.

        Parameters
        ----------
        shape : tuple
              New proposed axes.
Reshape just the values of a BoltArraySpark returning a new BoltArraySpark .