Lambda functions are too slow. Find a way (if possible) to parallelize the functions across the dataframe column and merge back