Hi guys I have the following DataFrame:
Index Numbering Description
1 A Agri. and Forest
2 1 Agri.
3 1.1 -----------
4 1.2 -----------
5 1.3 -----------
6 2 Forest
7 2.1 -----------
8 2.3 -----------
9 2.4 -----------
10 B Manufacturing
11 3 Autos
12 3.1 -----------
13 3.2 -----------
14 3.3 -----------
I want to create two new columns with values extracted from the existing columns. I want to achieve the following:
Index Numbering Description Letter Number
1 A Agri. and Forest A
2 1 Agri. A 1
3 1.1 ----------- A 1
4 1.2 ----------- A 1
5 1.3 ----------- A 1
6 2 Forest A 2
7 2.1 ----------- A 2
8 2.3 ----------- A 2
9 2.4 ----------- A 2
10 B Manufacturing B
11 3 Autos B 3
12 3.1 ----------- B 3
13 3.2 ----------- B 3
14 3.3 ----------- B 3
Your ideas are much appreciated.