Open Laurits00 opened 2 years ago
Hi
The issue you're running into is twofold:
You have a loop within your function, where each iteration returns df_last, whereas the assignment is to create a function which loads the dataframe for a given integer end year and processes as previously (1), and then call it multiple times, storing the dataframes in a list (2).
Hint: Removing the for loop in the function, adding preprocessing to the function and then adding the for loop afterwards where the function is called for each year and then appending to a list could be one way to attack the problem.
I have some issues with the first step of 0.5.1. I can't seem to get the loop working, so that the function returns the dataframes from the different years.