<jupyter_start><jupyter_text>--- Day 1: Sonar Sweep ---<jupyter_code>import pandas as pd
from IPython.core.display import display, HTML
df = pd.read_csv("data/input.csv", header=None)
df = df.diff(periods=1)
df.head()
df  = df.dropna()
df.head()
df[df < 0] = 0
df[df > 0] = 1
df = df.astype(int)
df.head()
result = df.sum().squeeze()
display(HTML('<h1>{}</h1>'.format(result)))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20393120393120392, 'fraction_numerical': 0.019656019656019656, 'mean_word_length': 5.181818181818182, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '487450', 'license': 'MIT', 'n_tokens_mistral': 181, 'n_tokens_neox': 173, 'n_words': 35, 'path': '1/1.ipynb', 'repo_name': 'DharmanGersch/aoc-2021', 'size': '407'}