def _with_columns(self, name_col_pairs):
    return DataFrame(self.sql_ctx, StructType(fields=(self.schema.fields + [StructField(name, infer_data_type(col)) for (name, col) in name_col_pairs])), _WithColumns(self, name_col_pairs))
def _with_columns(self, name_col_pairs):
    return DataFrame(self.sql_ctx, StructType(fields=(self.schema.fields + [StructField(name, infer_data_type(col)) for (name, col) in name_col_pairs])), _WithColumns(self, name_col_pairs))