how to replace nan with any other text in pandas code example Example: python pandas replace nan with null df.fillna('', inplace=True)