Transportation modeler and data geek. I tend to work in R, Cube Voyager, Python, Java, and occasionally in Biogeme. I am also the webmaster for a few conference and user group websites.
Location
Cincinnati, Ohio
Education
Bachelor of Urban Planning, Master Civil Engineering
There is no switch statement in Python (which this appears to be).
I think the best replacement would be to use a dictionary and ideally use a try/except to do something if the index is out of range: