Skip to content

Commit

Permalink
fixed scrub totals to work with empty data frames
Browse files Browse the repository at this point in the history
  • Loading branch information
twheys committed Jan 22, 2019
1 parent ced0c7c commit a9a6eb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fireant/slicer/totals.py
Expand Up @@ -59,6 +59,9 @@ def _scrub_totals_for_singlelevel_index_df(data_frame, dimensions):


def _scrub_totals_for_multilevel_index_df(data_frame, dimensions):
if data_frame.empty:
return data_frame

# Get the totals marker value for each index level
markers = [get_totals_marker_for_dtype(level.dtype)
for level in data_frame.index.levels]
Expand Down

0 comments on commit a9a6eb9

Please sign in to comment.