<jupyter_start><jupyter_text>Exercise 1<jupyter_code>pd.read_csv("precip_monthly.csv").set_index('month').loc['Jul']<jupyter_output><empty_output><jupyter_text>Exercise 2<jupyter_code>region_yearly_precip = monthly.groupby(['region', 'year'])['precip'].mean().unstack()
region_yearly_precip<jupyter_output><empty_output><jupyter_text>Exercise 3<jupyter_code>monthly.loc[monthly.region == 'COLORADO RIVER']
monthly.query('region == "COLORADO RIVER"')
monthly.loc[(monthly.region == 'COLORADO RIVER') & (monthly.year >= 1999) & (monthly.year <= 2003)]
monthly.query('region == "COLORADO RIVER" and year >= 1999 and year <= 2003')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1750380517503805, 'fraction_numerical': 0.0289193302891933, 'mean_word_length': 11.185185185185185, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3842', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 271, 'n_tokens_neox': 250, 'n_words': 28, 'path': 'scientific_python/Pandas Solutions.ipynb', 'repo_name': 'elliewix/2016-01-28-uiuc-swc', 'size': '657'}