I have this data set for example:
   Name  Number Is true
0  Dani       2     yes
1  Dani       2      no
2  Jack       5      no
3  Jack       5   maybe
4  Dani       2   maybe
I want to create a new data set that combines similar rows and adds columns by column different values. This is the output I'm trying to get:
   Name  Number Is true1 Is true2 Is true3
0  Dani       2      yes       no    maybe
1  Jack       5       no    maybe  
I couldn't get it working from example 10 here: How to pivot a dataframe
Would you be able to provide a specific example for this use case please?
Thanks.
Edit for respond:
   Name      yes     no     maybe
0  Dani        2      2         2
1  Jack      NaN      5         5
 
     
    