I would like to create multiple new columns for each value of one column, grouped by another. For example, if I have this:
session side_effect:
1 dizzy
1 irritable
1 anxious
3 focused
3 anxious
7 relaxed
Can I get this:
session side_effect1 side effect_2 side_effect_3
1 dizzy irritable anxious
3 focused anxious
7 relaxed