def get_summary(results, category):
    """Print a summary of the planning results broken down for the specified category"""
    summary = results.groupby([category], as_index=False).mean().round(1)
    summary['solves'] = [len(results.query(category+'==@tag and n_errors==0'))
                         for tag in summary[category]]
    summary['attempts'] = [len(results.query(category+'==@tag')) for tag in summary[category]]
    return str(summary)