2016-11-09 130 views

回答

2

np.nan替換零再寫入excel。 to_excel默認情況下,np.nan作爲''

df.mask(df.eq(0)).to_excel()