Passed
Pull Request — dev (#1226)
by
unknown
01:48
created

cost_data.energy_prices()   A

Complexity

Conditions 1

Size

Total Lines 24
Code Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 19
dl 0
loc 24
rs 9.45
c 0
b 0
f 0
cc 1
nop 0
1
import pandas as pd
2
3
4
def energy_prices() -> pd.DataFrame:
5
6
    print("Data is taken from at doi: https://doi.org/10.52202/077185-0033")
7
8
    years = [2025, 2030, 2035, 2040, 2045]
9
    return pd.DataFrame(
10
        {
11
            "gas_prices [Eur/kWh]": [
12
                0.116,
13
                0.106,
14
                0.133,
15
                0.116,
16
                0.118,
17
            ],
18
            "electricity_prices [Eur/kWh]": [
19
                0.386,
20
                0.303,
21
                0.290,
22
                0.294,
23
                0.286,
24
            ],
25
            "pv_feed_in [Eur/kWh]": [-0.081] * 5,
26
        },
27
        index=pd.Index(years, name="year"),
28
    )
29
30
31
def investment_costs() -> pd.DataFrame:
32
    print("Data is taken from doi: https://doi.org/10.52202/077185-0033")
33
34
    years = [2025, 2030, 2035, 2040, 2045]
35
    idx = pd.Index(years, name="year")
36
37
    df = pd.DataFrame(
38
        {
39
            ("gas boiler", "specific_costs [Eur/kW]"): [61] * 5,
40
            ("gas boiler", "fixed_costs [Eur]"): [4794] * 5,
41
            ("heat pump", "specific_costs [Eur/kW]"): [
42
                1680,
43
                1318,
44
                1182,
45
                1101,
46
                1048,
47
            ],
48
            ("heat pump", "fixed_costs [Eur]"): [3860, 3030, 2716, 2530, 2410],
49
            ("heat storage", "specific_costs [Eur/m3]"): [1120] * 5,
50
            ("heat storage", "fixed_costs [Eur]"): [806] * 5,
51
            ("pv", "specific_costs [Eur/kW]"): [
52
                1200,
53
                1017,
54
                927,
55
                864,
56
                828,
57
            ],
58
            ("pv", "fixed_costs [Eur]"): [3038, 2575, 2347, 2188, 2096],
59
            ("battery", "specific_costs [Eur/kWh]"): [
60
                850,
61
                544,
62
                453,
63
                420,
64
                409,
65
            ],
66
            ("battery", "fixed_costs [Eur]"): [0] * 5,
67
        },
68
        index=idx,
69
    )
70
71
    return df
72