build_hydro: change decimal to '.' from ',' with updated data
This commit is contained in:
parent
8aa4b5b558
commit
5b1575cb50
@ -74,11 +74,10 @@ 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=[" ", "--"], decimal=","
|
fn, skiprows=2, index_col=1, na_values=[" ", "--"]
|
||||||
).iloc[1:, 1:]
|
).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)
|
||||||
df = df.astype(float)
|
|
||||||
|
|
||||||
former_countries = {
|
former_countries = {
|
||||||
"Former Czechoslovakia": dict(
|
"Former Czechoslovakia": dict(
|
||||||
|
Loading…
Reference in New Issue
Block a user