We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a7d439 commit ff3ae9cCopy full SHA for ff3ae9c
modin/core/storage_formats/pandas/query_compiler_caster.py
@@ -270,9 +270,7 @@ def cast_to_qc(arg):
270
qc_type = calculator.calculate()
271
if qc_type is None or qc_type is type(arg):
272
return arg
273
- frame_data = calculator.result_data_cls()
274
- result = qc_type.from_pandas(arg.to_pandas(), frame_data)
275
- return result
+ return qc_type.from_pandas(arg.to_pandas(), data_cls=calculator.result_data_cls())
276
277
if isinstance(current_qc, BaseQueryCompiler):
278
visit_nested_args(kwargs, register_query_compilers)
0 commit comments