Skip to content

Commit

Permalink
Fixed returning empty series (#123)
Browse files Browse the repository at this point in the history
* Fixed returning empty series

* Fixed formatting
  • Loading branch information
williamma12 authored and devin-petersohn committed Oct 8, 2018
1 parent 2fdcf31 commit fde358c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modin/data_management/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ def full_reduce(self, axis, map_func, reduce_func=None, numeric_only=False):
result = data_manager.data.full_reduce(
map_func, reduce_func, axis ^ self._is_transposed
)
if not axis:
if result.shape == (0,):
return result
elif not axis:
result.index = data_manager.columns
else:
result.index = data_manager.index
Expand Down

0 comments on commit fde358c

Please sign in to comment.