wrap comparisons in brackets

This commit is contained in:
Fabian Neumann 2023-07-23 14:59:28 +02:00
parent d45cb71b7a
commit 6110fe784d

View File

@ -104,7 +104,7 @@ def replace_natural_gas_technology(df):
def replace_natural_gas_fueltype(df):
return df.Fueltype.mask(df.Technology == "OCGT" | df.Technology == "CCGT", "Natural Gas")
return df.Fueltype.mask((df.Technology == "OCGT") | (df.Technology == "CCGT"), "Natural Gas")
if __name__ == "__main__":