def format_accounts_for_dropdown(accounts_df):
    """
    Take accounts dataframe as returned by data.retrieve_accounts and bring it into
    a form that can be assigned to a dcc.Dropdown.
    """
    # Strategy:
    # use the full account name as label and the account's guid as value.
    # -> extract only the columns we need first, then rename those,
    #    then transform into records.

    # filter out placeholders and root accounts (which for some reason are not placeholders ??)
    tmp = accounts_df[(accounts_df.placeholder==0) & (accounts_df.account_type!="ROOT")]
    tmp = tmp[["full_name", "guid"]].rename(columns={"full_name": "label", "guid": "value"})
    return tmp.to_dict("records")