Hello, I know you've worked on this a long time ago, but I'm trying to run the code to get the data from 2014 and 2018, and I get the following error

I am quite newbie with Python, so I'm not sure what's going on. Would you mind letting me know what I should change to make it work?
Thank you very much.
Hello, I know you've worked on this a long time ago, but I'm trying to run the code to get the data from 2014 and 2018, and I get the following error

I am quite newbie with Python, so I'm not sure what's going on. Would you mind letting me know what I should change to make it work?
Thank you very much.