2016-11-09 3 views

답변

2

0을 np.nan으로 바꾸고 Excel에 쓰십시오. to_excel 기본적으로 np.nan''

df.mask(df.eq(0)).to_excel() 
로 처리합니다.