I have a dataframe that looks like this:
Year Month Day Delay
2019 1 4 60
2018 1 10 50
2018 1 30 25
2019 1 16 42
2017 1 14 0
2019 1 16 9
2017 1 14 5
I want to get the average Delay
for each Year
.
I think I need to use groupby()
but I don't know how to do it for two variables.
In another solution they don't show how to get a variable by grouping.