def applymap(self, func, **kwargs):
        """Return a new PRDD by applying a function to each element of each
        pandas DataFrame."""
        return self.from_rdd(
            self._rdd.map(lambda data: data.applymap(func), **kwargs))