remove nan cell in pandas & shifting code example Example: drop if nan in column pandas df = df[df['EPS'].notna()]