I have tried to reshape the following data frame from long to wide.
And I want it to become:
where the values under my columns A, B and C are the count of the frequency of my column violation.
How can I do this swiftly? I could not find any relevant pivot documentation.
Thanks!