'This function performs element-wise power.
Parameters
n : n is a scalar
dtype : If dtype is not specified, the current dtype will be preserved.'

def power(self, n, dtype=None):

    if (not isscalarlike(n)):
        raise NotImplementedError('input    is    not    scalar')
    data = self._deduped_data()
    if (dtype is not None):
        data = data.astype(dtype)
    return self._with_data((data ** n))
