The output says that I have a NameError: name 'month' is not defined. But I'm pretty sure it is returned from the function "get_filters()". What am I doing wrong here? Thanks in advance to all that help.
So the first error is a no module named pandas error. You can fix this be creating a file called requirements.txt and putting pandas in there. I apologize but I may not be able to help you much further with this, as my computer is weak and is having a hard time running your program
@jasonpark So split the question into two parts, first, if you want to make a variable from a function global, you can use the global keyword at the start of the function, like
and the second part is, the value functions returns can be the same name as your variable outside of the function, but returning the variable inside of the function will not change the variable outside of the function unless the variable is a global variable, when a variable is global, you can change it in the function, no need for return.