Python ganti 0 dalam seri

#Series.replace(to_replace=None, value=None, inplace=False, limit=None, regex=False, method='pad')
df['YourColumn'] = df['YourColumn'].replace(0,1) # Replace 0 with 1
Powerful Penguin