<jupyter_start><jupyter_text>Carpetplots<jupyter_code>import opengrid as og
from opengrid.library import plotting as og_plot
import pandas as pd
from joule import meta, filter_meta
plt = og.plot_style()
#%matplotlib notebook
#%matplotlib notebook
for building in meta['RecordNumber'].unique():
    ts = pd.read_pickle('data/Electricity_{}.pkl'.format(building)).sum(axis=1)*60
    if not ts.empty:
        for i in range(1,13):
            df_month = ts[ts.index.month == i]
            if len(df_month) > 1:
                og_plot.carpet(df_month, title=building, )
                fig = plt.gcf()
                fig.savefig("figures/carpet_electricity_month{}_{}.png".format(i, building))
                plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12149532710280374, 'fraction_numerical': 0.009345794392523364, 'mean_word_length': 3.1666666666666665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '668696', 'license': 'Apache-2.0', 'n_tokens_mistral': 261, 'n_tokens_neox': 245, 'n_words': 51, 'path': 'Carpet.ipynb', 'repo_name': 'saroele/jouleboulevard', 'size': '749'}