pandas how to replace non float numbers with NaN code example Example: python pandas replace nan with null df.fillna('', inplace=True)