Skip to content

Commit

Permalink
Merge pull request modin-project#51 from intel-go/ienkovich/remove-ex…
Browse files Browse the repository at this point in the history
…ec-triggers

Ienkovich/remove exec triggers
  • Loading branch information
ienkovich authored Jun 23, 2020
2 parents 0084e8d + dcf0f44 commit e368399
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion modin/pandas/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ def concat(
else DataFrame(obj)
for obj in objs
]
objs = [obj._query_compiler for obj in objs if len(obj.index) or len(obj.columns)]
objs = [
obj._query_compiler
for obj in objs
if (not obj._query_compiler.lazy_execution and len(obj.index))
or len(obj.columns)
]
if keys is not None:
if all_series:
new_idx = keys
Expand Down
2 changes: 1 addition & 1 deletion modin/pandas/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ def insert(self, loc, column, value, allow_duplicates=False):
# TODO: Remove broadcast of Series
value = value._to_pandas()

if len(self.index) == 0:
if not self._query_compiler.lazy_execution and len(self.index) == 0:
try:
value = pandas.Series(value)
except (TypeError, ValueError, IndexError):
Expand Down

0 comments on commit e368399

Please sign in to comment.