Here is my dataframe:
'''

```
 customer product     product1
0        A    hats        shoes
1        A   socks        shoes
2        B   socks        shoes
3        C    hats        shoes
4        C    None  accessories
5        B   socks        shoes
6        A    hats        shoes
7        C    None  accessories

```

'''
I want to output something like this:

```
customer    shoes   hats    socks   accessories
A             #       #        #    #
B             #       #        #    #
C             #       #        #    #

```

I tried group by like this:
'''

```
dfB.set_index('customer').groupby(['product', 'product1']).agg({'product':['count'], 'product1':['count']}) '''

```

I got output like this:

'''

```
 product product1
                   count    count
product product1                 
 hats   shoes          3        3
 socks  shoes          3        3

```

'''

Please help