pandas.DataFrame.where DataFrame.where(cond, other=nan, inplace=False, axis=None, level=None, try_cast=False, raise_on_error=True) inplace : boolean, default False Whether to perform the operation in place on the data axis : alignment axis if needed,