convert dataframe `df` to integer-type sparse object,df.to_sparse(0)