There is a column named 'country' and I want a column that is 'abc' <= the first two chars of 'country'.
'country'
'abc'
In pseudocode:
df['abc'] = df['country'][0:2]
Of course this does not work.
You want:
df['abc'] = df['country'].str[:2]