<jupyter_start><jupyter_text>Illinois Electricity Demand AnalysisIn-state electricity consumption is based on retail sales. Out-of-state electricity demand is based on the difference between generation and retail sales.<jupyter_code>import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
sales = pd.read_csv("Retail_sales_of_electricity_monthly.csv", skiprows=4)
sales.index = pd.to_datetime(sales.Month)
sales = sales.resample('Y').sum()
sales
sales[sales.index < pd.to_datetime('2021-01-01')].plot(title="Illinois In-State Electricity Consumption")
generation = pd.read_csv('Net_generation_for_all_fuels_(utility-scale)_monthly.csv', skiprows=4)
generation.index = pd.to_datetime(generation.Month)
generation = generation.resample('Y').sum()
generation
generation[generation.index < pd.to_datetime('2021-01-01')].plot(title="Illinois Electricity Exports")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11295681063122924, 'fraction_numerical': 0.019933554817275746, 'mean_word_length': 8.04, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '260894', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 306, 'n_tokens_neox': 279, 'n_words': 60, 'path': 'data/demand_analysis.ipynb', 'repo_name': 'samgdotson/2021-04-nm-illinois', 'size': '903'}