This tells pandas to build a pivot table, using the "region" column as the index, and the small, large, and "extra large" ...
AI is very much here to stay, whether we like it or not, but these two examples from Google really show that there are ideas ...