The Valley Desk

Regional dataPhiladelphia Department of Public Health

Health of the City, Philadelphia Department of Public Health

The Health of the City table contains aggregate metrics on population statistics, social determinants of health, and health outcomes that were used to build this report.

View public record ↗

Coverage

Counties
Philadelphia
Granularity
Philadelphia
Data covers
1980–2022
First published
Last updated by publisher
Update cadence
Not stated

How to get it

Access
Open Anyone can download the files, with no account or application.
Portal
OpenDataPhilly
Formats
CSV, ArcGIS REST API
License
City of Philadelphia License
Source and metadata checked Record details
Listing ID
regional:philadelphia-health-of-the-city

What's in it

Rows
5,005, all in the region
Fields
24
Source API
ArcGIS REST API
24 fields, as the publisher describes them
FieldDescriptionType
yearNot describedtext
geography_nameNot describedtext
geographyNot describedtext
sexNot describedtext
race_ethnicityNot describedtext
age_categoryNot describedtext
metric_nameNot describedtext
metric_valueNot describednumber
lower_boundNot describednumber
upper_boundNot describednumber
uncertainty_typeNot describedtext
sourceNot describedtext
categoryNot describedtext
quality_flagNot describedtext
candida_auris_case_typeNot describedtext
blood_lead_levelNot describedtext
fatal_nonfatal_shootingsNot describedtext
leading_cause_deathNot describedtext
leading_cause_death_rankNot describedtext
drug_categoryNot describedtext
aqi_categoryNot describedtext
syphilis_transmission_categoryNot describedtext
smoke_typeNot describedtext
objectidNot describedinteger

Read from the publisher's metadata on .

How to use it

Open the CSV resource from OpenDataPhilly. Open the starter query or download ↗

Explore the values here

This dataset's values are in The Valley Desk's regional data commons, with the other regional datasets, in one format. Explore its measures, or query them through the data API.

Query the regional rows

Preview five rows from the region ↗ · All rows for the region ↗

ArcGIS servers return a limited number of rows per request, often 1,000 or 2,000. Add &resultOffset=1000, then 2000 and so on, until all 5,005 rows are read.

Shell
curl -s "https://services.arcgis.com/fLeGjb7u4uXqeF9q/arcgis/rest/services/health_of_the_city/FeatureServer/0/query?where=1%3D1&outFields=%2A&returnGeometry=false&f=json"
Python
import pandas as pd, requests
features = requests.get("https://services.arcgis.com/fLeGjb7u4uXqeF9q/arcgis/rest/services/health_of_the_city/FeatureServer/0/query?where=1%3D1&outFields=%2A&returnGeometry=false&f=json").json()["features"]
df = pd.DataFrame([f["attributes"] for f in features])
R
df <- jsonlite::fromJSON("https://services.arcgis.com/fLeGjb7u4uXqeF9q/arcgis/rest/services/health_of_the_city/FeatureServer/0/query?where=1%3D1&outFields=%2A&returnGeometry=false&f=json")$features$attributes

How to cite

Philadelphia Department of Public Health, Health of the City, Philadelphia Department of Public Health.