Extract int from string in Pandas August 27, 2023 by Tarik You can convert to string and extract the integer using regular expressions. df['B'].str.extract('(\d+)').astype(int)