{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from datascience import *\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline\n", "import numpy as np\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
TEAM TEAM_ID PORTFOLIO PORTFOLIO_ID PLANT PLANT_ID PERIOD PRICE1 PRICE2 PRICE3 PRICE4
Coase 3 Old_Timers 6 BIG_CREEK 61 5 0 0 0 0
Arrow 1 Low_Fossil 7 HELMS 72 5 0.5 0.5 0.5 0.5
Arrow 1 Low_Fossil 7 DIABLO_CANYON_1 75 5 11.5 11.5 11.5 11.5
Coase 3 Old_Timers 6 MOHAVE_1 62 5 34.5 34.5 34.5 34.5
Friedman 5 Bay_Views 3 MOSS_LANDING_6 33 5 40 40 40 40
Friedman 5 Bay_Views 3 MOSS_LANDING_7 34 5 40 40 40 40
Krugman 7 Big_Coal 1 HUNTINGTON_BEACH_1-2 13 5 40.5 40.5 40.5 40.5
Becker 2 Big_Gas 2 EL_SEGUNDO_3-4 22 5 41.97 44.97 61.97 44.97
Becker 2 Big_Gas 2 ENCINA 25 5 41.97 44.97 61.97 44.97
Krugman 7 Big_Coal 1 REDONDO_5-6 15 5 42.3 41.94 41.94 42.3
\n", "

... (32 rows omitted)

" ], "text/plain": [ "TEAM | TEAM_ID | PORTFOLIO | PORTFOLIO_ID | PLANT | PLANT_ID | PERIOD | PRICE1 | PRICE2 | PRICE3 | PRICE4\n", "Coase | 3 | Old_Timers | 6 | BIG_CREEK | 61 | 5 | 0 | 0 | 0 | 0\n", "Arrow | 1 | Low_Fossil | 7 | HELMS | 72 | 5 | 0.5 | 0.5 | 0.5 | 0.5\n", "Arrow | 1 | Low_Fossil | 7 | DIABLO_CANYON_1 | 75 | 5 | 11.5 | 11.5 | 11.5 | 11.5\n", "Coase | 3 | Old_Timers | 6 | MOHAVE_1 | 62 | 5 | 34.5 | 34.5 | 34.5 | 34.5\n", "Friedman | 5 | Bay_Views | 3 | MOSS_LANDING_6 | 33 | 5 | 40 | 40 | 40 | 40\n", "Friedman | 5 | Bay_Views | 3 | MOSS_LANDING_7 | 34 | 5 | 40 | 40 | 40 | 40\n", "Krugman | 7 | Big_Coal | 1 | HUNTINGTON_BEACH_1-2 | 13 | 5 | 40.5 | 40.5 | 40.5 | 40.5\n", "Becker | 2 | Big_Gas | 2 | EL_SEGUNDO_3-4 | 22 | 5 | 41.97 | 44.97 | 61.97 | 44.97\n", "Becker | 2 | Big_Gas | 2 | ENCINA | 25 | 5 | 41.97 | 44.97 | 61.97 | 44.97\n", "Krugman | 7 | Big_Coal | 1 | REDONDO_5-6 | 15 | 5 | 42.3 | 41.94 | 41.94 | 42.3\n", "... (32 rows omitted)" ] }, "execution_count": 40, "metadata": {}, "output_type": "execute_result" } ], "source": [ "prices = Table.read_table('F2_bids_5.csv').sort('PRICE1')\n", "prices" ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Group Group_num UNIT NAME Capacity_MW Heat_Rate_MMBTUperMWh Fuel_Price_USDperMMBTU Fuel_Cost_USDperMWH Var_OandM_USDperMWH Total_Var_Cost_USDperMWH Carbon_tonsperMWH FixedCst_OandM_perDay
Old_Timers 7 BIG CREEK 1000 nan 0 0 0 0 0 $15,000
Fossil_Light 8 HELMS 800 nan 0 0 0.5 0.5 0 $15,000
Fossil_Light 8 DIABLO CANYON 1 1000 1 7.5 7.5 4 11.5 0 $20,000
Bay_Views 4 MOSS LANDING 6 750 6.9 4.5 31.06 1.5 32.56 0.37 $8,000
Bay_Views 4 MOSS LANDING 7 750 6.9 4.5 31.06 1.5 32.56 0.37 $8,000
Old_Timers 7 MOHAVE 1 750 10 3 30 4.5 34.5 0.94 $15,000
Old_Timers 7 MOHAVE 2 750 10 3 30 4.5 34.5 0.94 $15,000
Big_Coal 1 FOUR CORNERS 1900 11.67 3 35 1.5 36.5 1.1 $8,000
Bay_Views 4 MORRO BAY 3&4 665 8.02 4.5 36.11 0.5 36.61 0.43 $4,000
East_Bay 6 PITTSBURGH 5&6 650 8.02 4.5 36.11 0.5 36.61 0.43 $2,500
\n", "

... (32 rows omitted)

" ], "text/plain": [ "Group | Group_num | UNIT NAME | Capacity_MW | Heat_Rate_MMBTUperMWh | Fuel_Price_USDperMMBTU | Fuel_Cost_USDperMWH | Var_OandM_USDperMWH | Total_Var_Cost_USDperMWH | Carbon_tonsperMWH | FixedCst_OandM_perDay\n", "Old_Timers | 7 | BIG CREEK | 1000 | nan | 0 | 0 | 0 | 0 | 0 | $15,000\n", "Fossil_Light | 8 | HELMS | 800 | nan | 0 | 0 | 0.5 | 0.5 | 0 | $15,000\n", "Fossil_Light | 8 | DIABLO CANYON 1 | 1000 | 1 | 7.5 | 7.5 | 4 | 11.5 | 0 | $20,000\n", "Bay_Views | 4 | MOSS LANDING 6 | 750 | 6.9 | 4.5 | 31.06 | 1.5 | 32.56 | 0.37 | $8,000\n", "Bay_Views | 4 | MOSS LANDING 7 | 750 | 6.9 | 4.5 | 31.06 | 1.5 | 32.56 | 0.37 | $8,000\n", "Old_Timers | 7 | MOHAVE 1 | 750 | 10 | 3 | 30 | 4.5 | 34.5 | 0.94 | $15,000\n", "Old_Timers | 7 | MOHAVE 2 | 750 | 10 | 3 | 30 | 4.5 | 34.5 | 0.94 | $15,000\n", "Big_Coal | 1 | FOUR CORNERS | 1900 | 11.67 | 3 | 35 | 1.5 | 36.5 | 1.1 | $8,000\n", "Bay_Views | 4 | MORRO BAY 3&4 | 665 | 8.02 | 4.5 | 36.11 | 0.5 | 36.61 | 0.43 | $4,000\n", "East_Bay | 6 | PITTSBURGH 5&6 | 650 | 8.02 | 4.5 | 36.11 | 0.5 | 36.61 | 0.43 | $2,500\n", "... (32 rows omitted)" ] }, "execution_count": 43, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ESG = Table.read_table('ESGPorfolios_.csv').sort(\"Total_Var_Cost_USDperMWH\")\n", "ESG" ] }, { "cell_type": "code", "execution_count": 38, "metadata": {}, "outputs": [], "source": [ "big_coal = prices.where(\"PORTFOLIO\",\"Big_Coal\")\n", "capacities = ESG.where(\"Group\",\"Big Coal\").column('Capacity_MW')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.0" } }, "nbformat": 4, "nbformat_minor": 2 }