Skip to content

Commit ff3ae9c

Browse files
Update modin/core/storage_formats/pandas/query_compiler_caster.py
Co-authored-by: Mahesh Vashishtha <[email protected]>
1 parent 4a7d439 commit ff3ae9c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modin/core/storage_formats/pandas/query_compiler_caster.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,7 @@ def cast_to_qc(arg):
270270
qc_type = calculator.calculate()
271271
if qc_type is None or qc_type is type(arg):
272272
return arg
273-
frame_data = calculator.result_data_cls()
274-
result = qc_type.from_pandas(arg.to_pandas(), frame_data)
275-
return result
273+
return qc_type.from_pandas(arg.to_pandas(), data_cls=calculator.result_data_cls())
276274

277275
if isinstance(current_qc, BaseQueryCompiler):
278276
visit_nested_args(kwargs, register_query_compilers)

0 commit comments

Comments
 (0)