Extract int from string in Pandas
Assuming there is always exactly one leading letter
df['B'] = df['B'].str[1:].astype(int)
You can convert to string and extract the integer using regular expressions.
df['B'].str.extract('(\d+)').astype(int)