Getting the following error:
The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()."
for the below code.
if (right_coordinate == shape['x']) | (left_coordinate == shape['x'] + shape['cx']):
Getting the following error:
The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()."
for the below code.
if (right_coordinate == shape['x']) | (left_coordinate == shape['x'] + shape['cx']):