I am seeking ways to manipulate the last character of the string found within a specific column of a dataframe based on key-value pairs I have created in a dictionary. I need the letter character shown in the dataframe below to be changed to the value that corresponds in the dictionary (IE in line 0 the data point would change to "0000000027581"). Any input would be appreciated!
DataFrame:
Column 1
0 000000002758A
1 000000326588B
2 0000000000000{
Dictionary:
Key = {"{":"0", "A":"1", "B":"2"}