String increment of characters for a column

Published: 14/01/2020
String increment of characters for a column
Source: STACKOVERFLOW.COM

I've tried researching but din't get any leads so posting a question, I have a df and I want the string column values to be incremented based on their ascii values of each character of string by 3 data = [['tom', 10], ['nick', 15], ['juli', 14]] df = pd.DataFrame(data, columns = ['Name', 'Age']) Name Age 0 Tom 10 1 Nick 15 2 Juli 14 Final answer should be like Name is incremented by 3

Read more
Related news
Comment
FACEBOOK