<jupyter_start><jupyter_text>1<jupyter_code>df = pd.read_csv("bicycle.csv")
df.head()<jupyter_output><empty_output><jupyter_text>2 i.<jupyter_code>df['Total'] = df['Fremont Bridge East Sidewalk'] + df['Fremont Bridge West Sidewalk']
df['Date'] = pd.to_datetime(df['Date'], format = "%m/%d/%Y %I:%M:%S %p")<jupyter_output><empty_output><jupyter_text>ii.<jupyter_code>df['Hour'] = pd.DatetimeIndex(df['Date']).hour<jupyter_output><empty_output><jupyter_text>iii.<jupyter_code>df['Year'] = pd.DatetimeIndex(df['Date']).year
df.head()<jupyter_output><empty_output><jupyter_text>3<jupyter_code>df2016 = df[df['Year'] == 2016]
df2016.head()<jupyter_output><empty_output><jupyter_text>4<jupyter_code>len(df2016[df2016['Hour'] == 11])
group = df2016.groupby(by = 'Hour').sum()
group['Total'].plot.bar()<jupyter_output><empty_output><jupyter_text>5<jupyter_code>a = df.groupby(by = 'Hour').mean()
a
a[a['Total'] == a['Total'].max()]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2161594963273872, 'fraction_numerical': 0.03252885624344176, 'mean_word_length': 12.43661971830986, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '488504', 'license': 'MIT', 'n_tokens_mistral': 434, 'n_tokens_neox': 412, 'n_words': 34, 'path': 'analysis/Homework1.ipynb', 'repo_name': 'UWSEDS/manipulating-data-in-python-ablew', 'size': '953'}