Python Dataframe Apply Custom Functional Orthotics