def flatten_multicolumns(df):
    """
    Converts multi-index columns into single column
    """
    df.columns = [
        "_".join([el for el in col if el != ""]).strip()
        for col in df.columns.values
        if len(col) > 1
    ]
    return df