orders.loc[orders["discount"].notna(), "revenue"] = ( orders["revenue"] - orders["discount"] )