Reputation: 87
Missing files in my data was represented at 999, 99, 9999, so i used df.replace()
to change them to NaNs however, NaNs disappear after saving to excel.
df4 = df3.replace('99', np.nan)
df4.to_excel('42003hnew.xlsx', sheet_name = 'Sheet1')
Upvotes: 1
Views: 191