i'm planning to take a subset from a dataframe.
| A | B | C | Label |
|---|---|---|---|
| 3 | 2 | 3 | chair |
| 2 | 4 | 5 | table |
| 3 | 2 | 3 | table |
| 2 | 4 | 5 | chair |
| 3 | 2 | 3 | drawer |
| 2 | 4 | 5 | drawer |
| 3 | 2 | 3 | chair |
| 2 | 4 | 5 | table |
i know the first step is to group by the dataframe based on the label. Then i want to take a subset of row with only label "chair", "chair & table", "chair & table & drawer" and put it into a new dataframe (there will be 3 separate dataframe in the end). Is it possible to do this if i turn the data into numpy array and separate the label?
Thank you!