The dataset which I have is the Oscar winner dataset, It consists of columns such as winner name, award, date of birth, place of birth and year. I want to know how many rows are filled per year, for example for the year 2005 we have the winner of the best actor and best director and for the year 2006 we have a best-supporting actor as the winner, I wanted the results to be as follows:
year_of_award number of rows
It may look simple, but I am not able to get it, most of the post which I found recommended to use the combination of coun() and group by, I have tried writing the code but I am getting number of rows from columns, so I filled the year and other 4 columns with number of rows by coding as shown below.
How can I get just the year and the number of rows?