Update scripts/build_hydro_profile.py

Co-authored-by: Martha Frysztacki <martha.frysztacki@kit.edu>
This commit is contained in:
Fabian Hofmann 2022-06-23 16:15:37 +02:00 committed by GitHub
parent d6930b878a
commit 348b14b052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,6 @@ def get_eia_annual_hydro_generation(fn, countries):
df.loc["Germany"] = df.filter(like='Germany', axis=0).sum()
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.name = 'countries'