I would like to create a new column with the enumeration of Objects column based on membership in Name
| Name | Objects |
|---|---|
| A | phone |
| B | phone |
| B | keys |
| B | chewing gum |
| C | radio |
| C | chewing gum |
into
| Name | Object no. | Objects |
|---|---|---|
| A | 1 | phone |
| B | 1 | phone |
| B | 2 | keys |
| B | 3 | chewing gum |
| C | 1 | radio |
| C | 2 | chewing gum |
I suppose that there should be a really easy way to do it