0

for example my dataframe looks like this below

id    |   answer      |     reason
1     |    yes        |      possible fraud
1     |    maybe      |      scam
2     |    no         |      no evidence

how can I turn it into something like this below?

id    |    answer_1  |     reason_1     | answer_2    |reason_2
1     |    yes       | possible fraud   |   maybe     | possible fraud
2     |    no        |    no_evidence   |             |
Drew Pham
  • 89
  • 7

0 Answers0