Skip to content

Aggregations

More information in the API Docs.

The module aggregations has 2 available methods:

Endpoint API Docs
live details
forecast details

Example

from solcast import aggregations

res = aggregations.forecast(
    collection_id="country_total",
    aggregation_id="it_total",
    output_parameters=['percentage', 'pv_estimate']
)

res.to_pandas().head()
period_end percentage pv_estimate
2024-06-13 04:30:00+00:00 1 333.499
2024-06-13 05:00:00+00:00 3.6 1157.39
2024-06-13 05:30:00+00:00 7 2268.41
2024-06-13 06:00:00+00:00 10.4 3361.17
2024-06-13 06:30:00+00:00 14.4 4630.91