[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
2023924572
commit
ad9da61187
@ -73,9 +73,7 @@ cc = coco.CountryConverter()
|
|||||||
|
|
||||||
def get_eia_annual_hydro_generation(fn, countries, capacities=False):
|
def get_eia_annual_hydro_generation(fn, countries, capacities=False):
|
||||||
# in billion kWh/a = TWh/a
|
# in billion kWh/a = TWh/a
|
||||||
df = pd.read_csv(
|
df = pd.read_csv(fn, skiprows=2, index_col=1, na_values=[" ", "--"]).iloc[1:, 1:]
|
||||||
fn, skiprows=2, index_col=1, na_values=[" ", "--"]
|
|
||||||
).iloc[1:, 1:]
|
|
||||||
df.index = df.index.str.strip()
|
df.index = df.index.str.strip()
|
||||||
df.columns = df.columns.astype(int)
|
df.columns = df.columns.astype(int)
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
snakemake = mock_snakemake(
|
snakemake = mock_snakemake(
|
||||||
"build_population_weighted_energy_totals",
|
"build_population_weighted_energy_totals",
|
||||||
kind='energy',
|
kind="energy",
|
||||||
simpl="",
|
simpl="",
|
||||||
clusters=60,
|
clusters=60,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user