📅  最后修改于: 2022-03-11 14:46:19.955000             🧑  作者: Mango
#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