I'm trying to create an OD cost matrix python script.
I'm doing an OD cost matrix analysis. I'll find out the average time with patients to hospitals over 10 years. When I do this analysis, the result is that each patient visit every hospital, but in reality a patient only visit one hospitals. In my orgins table I have an attribute value HOSPITALS with the names of hospitals that can be linked to attribute value HOSPITALS in my destinations table. This means that the analysis should understand that each patient only visit a hospital.
Does anyone have a tip on how I do this in arcpy?