You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`type`| List[str]| Yes | Data types: `load`, `price`, `generation`|
44
+
|`prefer_15min`| bool | No | Defaults to `False`. If `True`, prioritizes fetching 15-minute resolution data (particularly relevant for prices). |
43
45
44
46
---
45
47
@@ -58,6 +60,10 @@ df = source.fetch(
58
60
|--------|-------------|
59
61
|`price`| Day-ahead electricity price (EUR/MWh) |
60
62
63
+
<Asidetype="caution">
64
+
**Germany Price Data:** ENTSOE publishes prices by bidding zone. Since the 2018 split, use the country code `"DE_LU"` (Germany/Luxembourg) to fetch German electricity prices. Using `"DE"` will return an empty list of prices.
|`"linear"`| Linear interpolation between points |
43
-
|`"ffill"`| Forward fill (use last known value) |
44
-
|`"bfill"`| Backward fill (use next known value) |
40
+
The `method` parameter controls behavior for **both** directions:
41
+
-**Downsampling** (e.g. 15 min → 1 h) – selects the aggregation function.
42
+
-**Upsampling** (e.g. 1 h → 15 min) – selects how NaN gaps are filled.
43
+
44
+
| Method | Aggregation (↓) | Fill Method (↑) |
45
+
|--------|----------------|-----------------|
46
+
|`"linear"`|`mean`| Linear interpolation |
47
+
|`"ffill"`|`first`| Forward-fill |
48
+
|`"bfill"`|`last`| Backward-fill |
49
+
|`"sum"`|`sum`| Forward-fill |
50
+
|`"first"`|`first`| Forward-fill |
51
+
|`"last"`|`last`| Backward-fill |
45
52
46
53
## Selecting Columns
47
54
48
-
By default, interpolation is applied to all columns. You can restrict interpolation to specific columns using the `columns` parameter. Other columns will be resampled (introducing NaNs) but not interpolated.
55
+
By default, the resampling method is applied to all columns. You can restrict it to specific columns using the `columns` parameter. Other columns will be resampled (introducing NaNs/dropping points) but not processed by the specified method.
49
56
50
57
```python
51
58
# Interpolate only 'price', leave 'load' with NaNs where gaps occur
0 commit comments