Overview
This module performs analysis on the merged power plant dataset to identify active generation, calculate daily totals, and produce a final filtered dataset for reporting.Analysis Pipeline
The analysis follows these steps:- Calculate hourly sums across all hours
- Filter plants with generation > 0
- Produce final dataframe with aggregated metrics
Hourly Sum Calculation
Calculation Logic
- Columns: H1 through H24 (24 hourly columns)
- Operation: Row-wise sum using
axis=1 - Result: Total daily generation per plant in MWh
Example Calculation
For a plant with constant 364 MW generation:Filtering Active Plants
Filter Criteria
- Condition:
Suma_Total > 0 - Purpose: Remove plants with no generation during the analysis period
- Result: Dataset containing only active plants
Final Dataframe Structure
The analysis produces a comprehensive dataset combining:- Master data (agent info, plant type)
- Hourly generation data (H1-H24)
- Calculated metrics (Suma_Total)
Column Schema
| Column | Type | Description |
|---|---|---|
| Nombre visible Agente | string | Display name (e.g., “EMGESA”) |
| AGENTE (OFEI) | string | Official agent identifier |
| CENTRAL (dDEC, dSEGDES, dPRU…) | string | Master data plant name |
| Tipo de central (Hidro, Termo, Filo, Menor) | string | Plant type (H/T) |
| CENTRAL | string | Generation data plant name |
| H1-H24 | float | Hourly generation values (MW) |
| Suma_Total | float | Daily total generation (MWh) |
Analysis Results
Sample Output
Key Statistics
- Total Records: 16 rows
- Unique Plants: 4 (BETANIA, ELQUIMBO, GUAVIO, PAGUA)
- All Plants: Type H (Hydroelectric)
- Agent: EMGESA / EMGESA S.A.
Generation Patterns
Constant Generation (BETANIA, ELQUIMBO, PAGUA)
These plants show stable generation across all hours:Variable Generation (GUAVIO)
GUAVIO shows peaking behavior:- Off-peak hours (H1-H15): 0 MW
- Peak hours (H16-H22): 120-1002 MW
- Night hours (H23-H24): 0 MW
- Daily total: 4,325 MWh
Usage Example
Output Dataset
Thedf_resultado dataframe contains:
- All EMGESA plants with active generation
- Complete hourly generation profiles
- Calculated daily totals
- Master data enrichment (agent names, plant types)