build_hydro_profiles: revert changes

This commit is contained in:
Fabian 2022-06-23 21:19:41 +02:00
parent 0fd7d689a1
commit b581e7afc6

View File

@ -78,6 +78,8 @@ def get_eia_annual_hydro_generation(fn, countries):
df.loc["Germany"] = df.filter(like='Germany', axis=0).sum() df.loc["Germany"] = df.filter(like='Germany', axis=0).sum()
df.loc["Serbia"] += df.loc["Kosovo"] df.loc["Serbia"] += df.loc["Kosovo"]
df = df.loc[~df.index.str.contains('Former')]
df.drop(["Europe", "Germany, West", "Germany, East"], inplace=True)
df.index = cc.convert(df.index, to='iso2') df.index = cc.convert(df.index, to='iso2')
df.index.name = 'countries' df.index.name = 'countries'