<jupyter_start><jupyter_text>Restrict data to last year:<jupyter_code>df_lastyear = df[-366:]
print(f"Since {df_lastyear.index[0]}")
report_stats(df_lastyear)
# 2021:
df_2021 = df["2021-01":"2021-12"]
print(f"from {df_2021.index[0]} to {df_2021.index[-1]}")
report_stats(df_2021)
import datetime
datetime.datetime.now()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17191977077363896, 'fraction_numerical': 0.10888252148997135, 'mean_word_length': 9.9375, 'pattern_counts': {'":': 1, '<': 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': '570791', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 170, 'n_tokens_neox': 148, 'n_words': 20, 'path': 'data/compute-mybinder-sessions.ipynb', 'repo_name': 'minrk/horizon-widera-2022', 'size': '349'}