xxxx = pd.DataFrame(pd_data.groupby([\'Sub Component\', \'Failure Mode\'])[\'Major Component\'].agg(\'count\')) xxxx
This works with Jupyt