# remove all rows without a value in the 'name' column
df = df[df['name'].notna()]
def filter_rows_by_values(df, col, values):
return df[~df[col].isin(values)]
In [215]:
df[df['entrytype'].apply(lambda x: str(x).isdigit())]
Out[215]:
entrytype
0 0
1 1
4 2