I have a Pandas dataframe like the following
col_a col_b col_c
2021-05-01 1 30
2021-05-01 3 40
2021-05-01 2 60
2021-05-02 1 70
2021-05-02 2 10
2021-05-02 3 20
And I want to make it into the following dataframe (i.e. adding n new columns based on how many different types in the col_b column in the original dataframe, and then matching based on col_a to fill in values)
col_a type_1 type_2 type_3
2021-05-01 30 60 40
2021-05-02 70 10 20
Could you help me please?