convert data to numbers in pandas code example Example: convert pandas series from str to int df['DataFrame Column'] = df['DataFrame Column'].astype(int)