I have the following dataframe:

```
symbol  Open  close
SPY  34,2  33,2
AMZN 30.2  10,2
.................

```

and I want to create a function that will convert each character in a string into ASCII. This function will than be applied on symbol field and its value will be placed in a new field (called 'id'). The final dataframe will look:

```
symbol  Open  close id
SPY  34,2  33,2  838089
AMZN 30.2  10,2  65779078

```

this is what I have done

```
def symbolid(x):
    strAscii = ''
    for i in range (len(x)):
        strAscii =  strAscii + str(ord(x[i]))
        print(x)
    return strAscii

df['id'] = df.apply(lambda x: symbolid(df['symbol']), axis=1)

```

I get
TypeError: ord() expected a character, but string of length 3 found

any help would be appreciate/ Using python 3.6