Question: For the following dataframe, I am trying to pivot the categorical variable ('purchase\_item') into wide format and dummy code them as 1/0 - based on whether or not a customer purchased it in each of the 4 quarters within 2016.

[![enter image description here](https://i.stack.imgur.com/HHJW1.jpg)](https://i.stack.imgur.com/HHJW1.jpg)

I would like to generate a pivotted dataframe as follows:
[![enter image description here](https://i.stack.imgur.com/t2TxR.jpg)](https://i.stack.imgur.com/t2TxR.jpg)

To get the desired result shown above, I have tried basically in various ways to combine groupby/pivot\_table functions with a call to get\_dummies() function in pandas. Example:
`data.groupby(["cust_id", "purchase_qtr"])["purchase_item"].reset_index().get_dummies()`

However, none of my attempts have worked thus far.

Can somebody please help me generate the desired result?

Answer: 
OS build **22563.1** supports IIS. I'm not sure if this is the first build that supports it, but I checked after the last automatic windows update and the IIS features are available; they were not before. I am on a m1 Mac using Parallels with the Windows Insider Preview ARM image.

* Edition: Windows 11 Pro OS
* Build: 22563.1
* Experience: Windows Feature
Experience Pack 1000.22563.1.0
You can download the ASP.NET Core Runtime or .NET 5.0 SDK to allow you run to run ASP.NET applications on Windows, Mac or Linux.
See <https://support.microsoft.com/en-us/windows/downloads-for-windows-32490f9b-01ee-c13e-b2af-b5057c2d34e8>