I have this line of code:
all_task_food_rescuer_combinations = task_data.merge(food_rescuer_data, how='cross')
It is giving me this error message:
KeyError: 'cross'
I don't have any columns named 'cross'. Does anyone know what could be causing this error?
Update: I swapped that line of code with these lines:
task_data['key'] = 1
food_rescuer_data['key'] = 1
all_task_food_rescuer_combinations = pd.merge(task_data, food_rescuer_data, on ='key').drop("key", 1)
I don't have the error now, but I'm still curious why my first approach didn't work. That line of code is straight from the documentation.