I have a Dataframe like the following:
Date Desc
2022-04-31 Car
2022-05-31 Bus
2022-05-31 Car
2022-05-31 Bike
2022-05-31 Car
2022-06-14 Car
2022-06-19 Car
2022-06-19 Bike
2022-07-19 Bike
2022-07-19 Bus
How can I group it by month and year and then get the count of Desc as columns?
Expected Output:
Date Car Bus Bike
2022-04 1 0 0
2022-05 2 1 1
2022-06 2 0 2
2022-07 0 1 1