I want to apply a function to every single row in a pandas Dataframe. While doing that, the function has to access a global variable, that can change with every row. Thus it is