I have a pandas dataframe as shown below:
df =pd.DataFrame({\'String\':[\'JAIJAOD\',\'ERJTD\',\'AJDIDO\',\'AJDIDO\'],\'Position\':[5,2,nan,4]})