<jupyter_start><jupyter_text>Resample your dataframe<jupyter_code>df = df.resample('M').sum()<jupyter_output><empty_output><jupyter_text>Make sure the index has a readable value (for the plot)<jupyter_code>if isinstance(df.index, pd.DatetimeIndex):
    df.index = df.index.map(lambda x: x.strftime('%b'))
df<jupyter_output><empty_output><jupyter_text>Make the boxplots for each column<jupyter_code>for col in cols:
    fig = og_plot.boxplot(df=df, plot_mean=True, plot_ids=[col])
    fig.savefig("figures/boxplot_" + col + ".png")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14107142857142857, 'fraction_numerical': 0.0, 'mean_word_length': 7.630769230769231, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '333794', 'license': 'Apache-2.0', 'n_tokens_mistral': 220, 'n_tokens_neox': 213, 'n_words': 36, 'path': 'boxplot.ipynb', 'repo_name': 'saroele/jouleboulevard', 'size': '560'}