select columns pandas value x or y code example Example: slice dataframe dwpwnding on column value not emty df = df[df['EPS'].notna()]