I want to replace string without using replace() function.
Only want to use pandas and numpy.
sample data:
# df
Col1
ab1
de4
The logic of replace is:
- awill be- i
- bwill be- g
- dwill be- m
- ewill be- t
- 1will be- 2
- 4will be- 3
Is there any way that I can create a dictionary and use this to identify and replace?
# df
Col1   Col2
ab1    ig2
de4    mt3
 
     
    