I have a column, Industry which looks like below, I would like to create a new column called Code which only contains the character that appear in the [...], THEN I wish to create a new column Industry_2 which contains all the characters but witHout the [...] so my results would look like below.
| Industry | Code | Industry_2 |
|---|---|---|
| Total, all industries | Total, all industries | |
| Agriculture [11] | [11] | Agriculture |
| Manufacturing [31-33] | [31-33] | Manufacturing |