Maybe a simple solution but I am finding it hard to make this function work for my dataset.
I have a salary column with variety of different data in it. Example dataf