This repository contains a comprehensive analysis of natural gas power plant operations across the United States, focusing on profitability, efficiency, and regulatory compliance. The project includes both exploratory data analysis (notebook) and an interactive executive dashboard (Streamlit app).
The analysis examines the economic viability of natural gas power plants by integrating multiple data sources including electricity prices, fuel costs, generation data, and state-level emission regulations. The project identifies underperforming facilities and provides scenario modeling capabilities for portfolio optimization.
Jupyter notebook containing the complete data analysis pipeline:
- Data loading and cleaning from multiple CSV sources
- Natural gas plant filtering and aggregation
- Economic metrics calculation (operational costs, revenues, profitability)
- Efficiency analysis (build vs. buy comparisons)
- State-level aggregation and ranking
- Identification of "zombie plants" (facilities with zero generation but positive costs)
Key Analysis Steps:
- Load and process electricity pricing data (2023, industrial sector)
- Extract natural gas fuel cost data by state
- Filter EIA-923 facility data for natural gas plants
- Calculate per-plant operational costs and revenue
- Compute efficiency gaps and profitability metrics
- Aggregate results at state and portfolio levels
Streamlit-based interactive dashboard for executive-level portfolio analysis:
Features:
- Real-time "what-if" scenario modeling with adjustable parameters:
- Gas price adjustments (-50% to +100%)
- Grid price adjustments (-50% to +50%)
- Generation efficiency improvements (0% to +50%)
- Portfolio-wide KPI tracking
- State-level profitability rankings
- Top 10 worst-performing plants analysis
- Deep-dive plant diagnostics with regulatory context
- Build vs. buy efficiency comparisons
- Local efficiency improvement scenarios
Key Components:
- Sidebar controls for global assumptions
- Headline KPIs (total profit, generation costs, revenue)
- State-level analysis with sortable metrics
- Plant-specific regulatory compliance information
- Interactive efficiency modeling tools
The following CSV files are required in the working directory:
-
average_retail_price_of_electricity_annual.csv- Source: EIA electricity pricing data
- Contains industrial electricity prices by state
- Header row on line 5
-
Average_cost_of_fossil_fuels_for_electricity_generation_natural_gas_all_sectors_annual.csv- Source: EIA fuel cost data
- Natural gas prices by state ($/MMBtu)
-
EIA923_Schedules_2_3_4_5_M_12_2023_Final_Revision.csv- Source: EIA Form 923
- Plant-level generation and fuel consumption data
- Contains facility identifiers, generation output, and fuel usage
-
Carbon_Pricing_Table.csv- State-level emission regulations and penalties
- Emission thresholds and compliance costs
- Coverage and key standards by jurisdiction
Install required dependencies:
pip install streamlit pandas numpyFor the Jupyter notebook, also install:
pip install jupyter matplotlib seabornLaunch the Streamlit dashboard:
streamlit run executive_briefing.pyThe dashboard will open in your browser with:
- Sidebar controls for scenario modeling
- Portfolio overview and KPIs
- Interactive state and plant-level analysis
Open and execute the analysis notebook:
jupyter notebook final_notebook.ipynbRun cells sequentially to reproduce the data pipeline and analysis.
Plant-Level Metrics:
- Generation Cost (Million USD): Total fuel consumption cost
- Net Revenue (Million USD): Electricity sales revenue
- Net Operating Profit: Revenue minus generation costs
- Build Cost per MWh: Cost to generate electricity
- Grid Price per MWh: Market price for electricity
- Efficiency Gap: Build cost minus grid price (negative = unprofitable)
Portfolio Metrics:
- Total Net Operating Profit across all facilities
- Aggregate generation costs and revenue
- State-level profitability rankings
- Worst-performing plant identification
The analysis identifies several categories of plants:
- Profitable Plants: Build cost below grid price (positive efficiency gap)
- Marginal Plants: Build cost slightly above grid price
- Zombie Plants: Zero generation output with positive costs
- High-Loss Plants: Significant operational losses requiring intervention
State-level regulations are integrated to assess compliance exposure and potential penalties for emission threshold violations.
The dashboard supports three types of what-if analyses:
- Gas Price Shocks: Model impacts of fuel cost changes on portfolio profitability
- Grid Price Adjustments: Assess revenue impacts from market price fluctuations
- Efficiency Improvements: Evaluate ROI of operational optimization investments
Adjustments are applied globally across the portfolio with real-time KPI updates.
The dashboard integrates state emission regulations including:
- Main regulations and rules
- Emission thresholds (tCO2)
- Penalties per ton of excess emissions
- Coverage criteria and key standards
- Compliance cost estimates
This information helps contextualize plant performance within the regulatory framework.
Potential extensions to this analysis:
- Renewable energy integration scenarios
- Carbon capture cost-benefit analysis
- Long-term fuel price forecasting
- Retirement vs. retrofit decision modeling
- Portfolio optimization recommendations
- U.S. Energy Information Administration (EIA)
- EIA Form 923 (2023 data)
- State regulatory databases
- Industrial electricity pricing reports
This project is for analytical and educational purposes.