Skip to content

Commit 47cd0ea

Browse files
committed
Remove dead code
1 parent cd32250 commit 47cd0ea

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

modin/core/storage_formats/pandas/query_compiler_caster.py

-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ def calculate(self):
9393
if cost is not None:
9494
self._add_cost_data({qc_cls_to: cost})
9595
self._add_cost_data({type(qc_from): QCCoercionCost.COST_ZERO})
96-
if len(self._compiler_class_to_cost) <= 0 and len(self._qc_cls_list) > 0:
97-
self._result_type = self._qc_cls_list[0]
98-
return self._result_type
9996
min_value = min(self._compiler_class_to_cost.values())
10097
for key, value in self._compiler_class_to_cost.items():
10198
if min_value == value:

modin/tests/pandas/native_df_interoperability/test_compiler_caster.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def test_default_to_caller(default_df, default2_df):
252252
assert type(df3) is type(default_df) # should stay on caller
253253
df3 = default2_df.concat(axis=1, other=default_df)
254254
assert type(df3) is type(default2_df) # should stay on caller
255-
255+
df3 = default_df.concat(axis=1, other=default_df)
256+
assert type(df3) is type(default_df) # no change
256257

257258
def test_no_qc_data_to_calculate():
258259
calculator = QueryCompilerCasterCalculator()

0 commit comments

Comments
 (0)