def equalize_axes(left, right):
    """Takes two dataframes, combines their columns and indexes
    and sets combined index and columns for each
    Args:
        left: (pd.DataFrame)
        right: (pd.DataFrame)
    """
    new_cols = left.columns.union(right.columns)
    new_idx = left.index.union(right.index)
    return left.loc[new_idx, new_cols], right.loc[new_idx, new_cols]
