I've a sample dataframe
s_id c1_id c2_id c3_id
1 a b c
2 a b
3 x y z
how can I transpose the dataframe to
s_id c_id
1 a
1 b
1 c
2 a
2 b
3 x
3 y
3 z