This is a sample what my dataframe looks like:

```
company_name country_code state_code software finance commerce etc......
google       USA           CA          1        0          0
jimmy        GBR           unknown     0        0          1

```

I would like to be able to group the industry of a company with its state code. For example I would like to have the total number of software companies in a state etc. (e.g. 200 software companies in CA, 100 finance companies in NY).

I am currently just counting the number of total companies in each state using:

```
 usa_df['state_code'].value_counts()

```

But I can't figure out how to group the number of each type of industry in each individual state.