for index, row in df.iterrows(): if isinstance(row.column_name, float): df.loc[index, 'column_name'] = 'string' df.loc[index, 'column_name'] = 'string'