title: Pandas replace non-zero values
body: <p>I know I can replace all nan values with <code>df.fillna(0)</code> and replace a single value with <code>df.replace('-',1)</code>, but how can I replace all non-zero values with a single value?</p>