use df index as labels python code example Example: slice dataframe dwpwnding on column value not emty df = df[df['EPS'].notna()]