Given dataframe looking like this:
ID | ID_2 | Value |
---|---|---|
12 | 34 | 100 |
12 | 56 | 200 |
12 | 78 | 300 |
How do we:
- Filter the dataframe with
ID_2
= 34/56/78 - Create new columns for each of the
Value
ID | New column | New column_2 | New column_3 |
---|---|---|---|
12 | 100 | 200 | 300 |