Skip to content

Commit 4a7b486

Browse files
committed
Try to avoid a materialization in insert
1 parent b860281 commit 4a7b486

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

modin/pandas/dataframe.py

-7
Original file line numberDiff line numberDiff line change
@@ -1096,13 +1096,6 @@ def insert(
10961096
new_query_compiler = self.__constructor__(
10971097
value, index=new_index, columns=new_columns
10981098
)._query_compiler
1099-
elif len(self.columns) == 0 and loc == 0:
1100-
new_index = self.index
1101-
new_query_compiler = self.__constructor__(
1102-
data=value,
1103-
columns=[column],
1104-
index=None if len(new_index) == 0 else new_index,
1105-
)._query_compiler
11061099
else:
11071100
if (
11081101
is_list_like(value)

0 commit comments

Comments
 (0)