<jupyter_start><jupyter_text>PJM contribution to US emissions (2017)<jupyter_code>import pandas as pd
import os
nerc_df = pd.read_csv(os.path.join(os.pardir, 'data', 'cems', 'raw_data', 'emit_agg_by_nerc.csv'),
                     index_col=0, parse_dates=[0])
nerc_emit_sum = nerc_df[nerc_df.index.year == 2017][['so2_lbs', 'nox_lbs', 'pm25_tons', 'co2_tons']].sum()
nerc_emit_sum
isorto_df = pd.read_csv(os.path.join(os.pardir, 'data', 'cems', 'raw_data', 'emit_agg_by_isorto.csv'),
                     index_col=0, parse_dates=[0])
pjm_emit_sum = isorto_df[(isorto_df.index.year == 2017) & (isorto_df['isorto'] == 'PJM')][['so2_lbs', 'nox_lbs', 'pm25_tons', 'co2_tons']].sum()
pjm_emit_sum
(pjm_emit_sum / nerc_emit_sum) * 100<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1773981603153745, 'fraction_numerical': 0.035479632063074903, 'mean_word_length': 5.626086956521739, 'pattern_counts': {'":': 0, '<': 5, '<?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': '565858', 'license': 'Apache-2.0', 'n_tokens_mistral': 360, 'n_tokens_neox': 330, 'n_words': 46, 'path': 'si/PJMContribUS.ipynb', 'repo_name': 'priyald17/emissions-assumptions', 'size': '761'}