I think the best way to illustrate what Im looking for is through this example. I want to convert a DataFrame that looks like this:
Table 1
Ideally, into this where the counts of each code are represented in the columns:
Table 2
If that can't be done, then I'm wondering if it'd be possible just to have a table of dummy variables like this:
Table 3