def applymap(self, f, **kwargs):
        """Return a new DataFrame by applying a function to each element of each
        Panda DataFrame."""
        def transform_rdd(rdd):
            return rdd.map(lambda data: data.applymap(f), **kwargs)
        return self._evil_apply_with_dataframes(transform_rdd,
                                                preserves_cols=True)
def applymap ( self , f , ** kwargs ) : def transform_rdd ( rdd ) : return rdd . map ( lambda data : data . applymap ( f ) , ** kwargs ) return self . _evil_apply_with_dataframes ( transform_rdd , preserves_cols = True )
Return a new DataFrame by applying a function to each element of each
        Panda DataFrame.