Is there a function to get all subsets by their each unique value available in 'Department' column ? Can this be filter by unique value and copy --> create a dataframe ?
ID | Department | Strength | DoD | Group_ID |
---|---|---|---|---|
82950 | Training | 96 | 953 | A |
32045 | Training | 86 | 5277 | A |
84817 | Sales | 77 | 1633 | C |
2857 | Logistics | 88 | 5629 | Z |
55587 | Training | 46 | 6710 | L |
73103 | Sales | 51 | 1892 | M |
5837 | Sales | 62 | 2394 | A |
7140 | Sales | 81 | 2854 | C |
70450 | Logistics | 56 | 5449 | A |
34207 | Manufacturing | 85 | 1332 | S |
20095 | Manufacturing | 58 | 4589 | X |
30200 | Sales | 91 | 1094 | W |
47211 | Manufacturing | 36 | 5862 | C |
8932 | Manufacturing | 75 | 4847 | A |
82663 | Manufacturing | 39 | 5798 | A |
What I expect to see;
Logistics.xlsx
ID | Department | Strength | DoD | Group_ID |
---|---|---|---|---|
2857 | Logistics | 88 | 5629 | Z |
70450 | Logistics | 56 | 5449 | A |
Manufacturing.xlsx
ID | Department | Strength | DoD | Group_ID |
---|---|---|---|---|
34207 | Manufacturing | 85 | 1332 | S |
20095 | Manufacturing | 58 | 4589 | X |
47211 | Manufacturing | 36 | 5862 | C |
8932 | Manufacturing | 75 | 4847 | A |
82663 | Manufacturing | 39 | 5798 | A |
and so on.....