Skip to content

Commit

Permalink
sanitize_carriers: do not invent nice names, use carrier where not av…
Browse files Browse the repository at this point in the history
…ailable
  • Loading branch information
fneum committed Aug 21, 2023
1 parent d7554bc commit 6cdb194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def sanitize_carriers(n, config):
nice_names = (
pd.Series(config["plotting"]["nice_names"])
.reindex(carrier_i)
.fillna(carrier_i.to_series().str.title())
.fillna(carrier_i.to_series())
)
n.carriers["nice_name"] = n.carriers.nice_name.where(
n.carriers.nice_name != "", nice_names
Expand Down

0 comments on commit 6cdb194

Please sign in to comment.