結果 : check if value is nan or string python