示例#1
0
def _reassign_jdf(target_df: DataFrame, new_df: DataFrame):
    """
    Reassigns the java df contont of a dataframe.
    """
    target_df._jdf = new_df._jdf
    target_df._metadata = new_df._metadata
    # Reset the cached variables
    target_df._schema = None
    target_df._lazy_rdd = None
示例#2
0
 def copy(self):
     df = DataFrame(self._jdf, self.sql_ctx)
     df._metadata = self._metadata.copy()
     return df