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.
Coverage
- Counties
- Philadelphia
- Topic
- Public health
- 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
| Field | Description | Type |
|---|---|---|
year | Not described | text |
geography_name | Not described | text |
geography | Not described | text |
sex | Not described | text |
race_ethnicity | Not described | text |
age_category | Not described | text |
metric_name | Not described | text |
metric_value | Not described | number |
lower_bound | Not described | number |
upper_bound | Not described | number |
uncertainty_type | Not described | text |
source | Not described | text |
category | Not described | text |
quality_flag | Not described | text |
candida_auris_case_type | Not described | text |
blood_lead_level | Not described | text |
fatal_nonfatal_shootings | Not described | text |
leading_cause_death | Not described | text |
leading_cause_death_rank | Not described | text |
drug_category | Not described | text |
aqi_category | Not described | text |
syphilis_transmission_category | Not described | text |
smoke_type | Not described | text |
objectid | Not described | integer |
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$attributesHow to cite
Philadelphia Department of Public Health, Health of the City, Philadelphia Department of Public Health.