I am new to pandas and I don't know how to word this question, but I need help on how to change a dataframe and reorganize it. I would like to minimize the large dataframe without having to manually input the data as shown in the img reference. I tried groupby() but it is not exactly what I am looking for because I also need to create 2 new columns based on the yes/no values in the existing PlayTennis column. Let me know. Thanks in advance.
See image for reference: