City of Boston

Analyze Boston is the City of Boston’s open data hub to find facts, figures, and maps related to our lives within the city. We are working to make this the default technology platform to support the publication of the City’s public information, in the form of data, and to make this information easy to find, access, and use by a broad audience. This platform is managed by the Citywide Analytics Team.

Each dataset from Analyze Boston typically has metadata and relevant information. For example, this dataset from ParkBoston.

import pandas as pd
df = pd.read_csv('park-boston-monthly-transactions-by-zone-2015.csv')

# Remove trailing whitespace in column names.
df.columns = [c.strip() for c in df.columns]

# See the 20 most used parking zones in January.
print(df.sort_values('January', ascending=False)['Zone Name'].head(20))

df <- read.csv("park-boston-monthly-transactions-by-zone-2015.csv")

# See the 20 most used parking zones in January.
head(df$Zone.Name[order(df$January), decreasing = TRUE], 20)