File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
modin/core/storage_formats/pandas Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1120,10 +1120,12 @@ def cast_to_qc(arg):
11201120 and arg .get_backend () != result_backend
11211121 ):
11221122 return arg
1123- cast = arg .set_backend (
1123+ arg .set_backend (
11241124 result_backend ,
11251125 switch_operation = f"{ _normalize_class_name (class_of_wrapped_fn )} .{ name } " ,
1126+ inplace = True ,
11261127 )
1128+ cast = arg
11271129 inplace_update_trackers .append (
11281130 InplaceUpdateTracker (
11291131 input_castable = arg ,
@@ -1156,8 +1158,8 @@ def cast_to_qc(arg):
11561158 new_castable ,
11571159 ) in inplace_update_trackers :
11581160 new_qc = new_castable ._get_query_compiler ()
1159- if original_qc is not new_qc :
1160- new_castable ._copy_into (original_castable )
1161+ # if original_qc is not new_qc:
1162+ new_castable ._copy_into (original_castable )
11611163
11621164 return _maybe_switch_backend_post_op (
11631165 result ,
You can’t perform that action at this time.
0 commit comments