Currently have a dataframe like this:
| RepName | Hours | Reason | 
|---|---|---|
| John | 4 | Research | 
| John | 15 | Training | 
| Matt | 6 | Project Labor | 
| Matt | 10 | Training | 
I want to transpose each reason as a column with the Hours values as values like so:
| RepName | Research | Training | Project Labor | 
|---|---|---|---|
| John | 4 | 15 | 0 | 
| Matt | 0 | 10 | 6 | 
I tried to transpose and melting the dataframe and couldn't figure it out. Still sort of new to this, any help would be appreciated.
 
     
    