This drives me nuts. When I searched for tips about dropping elements in a dataframe there was nothing about mixed typed series.
Say here is a dataframe:
import pandas as pd
df = pd.DataFrame(data={'col1': [1,2,3,4,'apple','apple'], 'col2': [3,4,5,6,7,8]})
a = df['col1']
Then 'a' is a mixed typed series with 6 components. How can I remove all 'apple's from a? I need series = 1,2,3,4.