Pandas Dataframe Map Column Values With Function In Sql