<jupyter_start><jupyter_text>This notebook goes through data analysis of counts of bicycles crossing the Fremont Bridge since 2012. The CSV file was downloaded from: https://data.seattle.gov/api/views/65db-xm6k/rows.csv?accessType=DOWNLOADThe HW assignment requires two packages: pandas and matplotlib.<jupyter_code>#  loading libraries
import pandas as pd
import matplotlib
import re
import datetime as dt<jupyter_output><empty_output><jupyter_text>Read the CSV file into a pandas dataframe.<jupyter_code>counts_df = pd.read_csv("Data/Fremont_Bridge_Bicycle_Counter.csv")<jupyter_output><empty_output><jupyter_text>Add columns to the dataframe<jupyter_code># sum of East and West counts
counts_df['Sum_East_West'] = counts_df['Fremont Bridge East Sidewalk'] + counts_df['Fremont Bridge West Sidewalk']
# hour of the day
datetime = pd.to_datetime(counts_df['Date']).dt.strftime('%H:%M:%S')
counts_df['Hour'] = pd.to_datetime(datetime).dt.hour<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10082304526748971, 'fraction_numerical': 0.00720164609053498, 'mean_word_length': 7.926605504587156, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '146635', 'license': 'MIT', 'n_tokens_mistral': 339, 'n_tokens_neox': 323, 'n_words': 80, 'path': 'Analysis/Data_analysis.ipynb', 'repo_name': 'uwseds-sp20/homework-1-manipulating-data-mshobair', 'size': '972'}