<jupyter_start><jupyter_text>Part 1<jupyter_code>import pandas as pd
df = pd.read_csv('input.txt', header=None, names=["depth"])
df["dif"] = df.diff()
sum(df.dif>0)<jupyter_output><empty_output><jupyter_text>Part 2<jupyter_code>w3 = df.rolling(window=3).sum()
w3d = w3.diff()
sum(w3d.depth>0)<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup