organize friends books data for display by groupby