Select row from a DataFrame based on the type of the object(i.e. str)

This works:

df[df['A'].apply(lambda x: isinstance(x, str))]

Leave a Comment