README.md

December 6, 2021 · View on GitHub

The Los Angeles Times' open-source archive of California coronavirus data

Binder Jupyer Notebook tests

Table of contents

Cases and deaths

Vaccinations

Demographics

Hospitals

Nursing homes

Prisons and jails

Schools

Maps

Other

Reusing the data

The Los Angeles Times is making coronavirus infections data available for use by researchers and scientists to aid in the fight against COVID-19.

The company's Terms of Service apply. By using the data, you accept and agree to follow the Terms of Services.

It states that "you may use the content online only, and solely for your personal, non-commercial use, provided you do not remove any trademark, copyright or other notice from such Content," and that, "no other use is permitted without prior written permission of Los Angeles Times."

Reselling the data is forbidden. Any use of these data in published works requires attribution to the Los Angeles Times.

To inquire about reuse, please contact Data and Graphics Editor Ben Welsh at ben.welsh@latimes.com.

Examples of reuse

Data dictionary

Cases and deaths

cdph-county-cases-deaths.csv

The county-level totals of cases and deaths logged by the California Department of Public Health.

fieldtypedescription
countystringThe name of the county where the agency is based.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
datedateThe date when the data were retrieved in ISO 8601 format.
confirmed_casesintegerThe cumulative number of coronavirus cases that were confirmed as of that time. This is sometimes called the episode date by other sources.
reported_casesintegerThe cumulative number of coronavirus cases that were reported as of that time. This reflects when cases were first announced by the state.
probable_casesintegerThe cumulative number of probable coronavirus cases that were confirmed as of that time. This reflects the results of antigen tests, a rapid testing technique different from the standard test.
reported_and_probable_casesintegerThe cumulative number of reported and probable coronavirus cases as of that time.
reported_deathsintegerThe cumulative number of deaths reported at that time.

cdph-state-cases-deaths.csv

The statewide total of cases and deaths logged by the California Department of Public Health.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
confirmed_casesintegerThe cumulative number of coronavirus cases that were confirmed as of that time. This is sometimes called the episode date by other sources.
reported_casesintegerThe cumulative number of coronavirus cases that were reported as of that time. This reflects when cases were first announced by the state.
probable_casesintegerThe cumulative number of probable coronavirus cases that were confirmed as of that time. This reflects the results of antigen tests, a rapid testing technique different from the standard test.
reported_and_probable_casesintegerThe cumulative number of reported and probable coronavirus cases as of that time.
reported_deathsintegerThe cumulative number of deaths reported at that time.

cdph-positive-test-rate.csv

All of the data used by The Times to estimate how many recent tests have come back positive. The daily tallies of new cases and tests are drawn from cdph-state-totals.csv.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
confirmed_casesintegerThe cumulative number of confirmed coronavirus case at that time.
total_testsintegerThe total number of tests conducted.
new_confirmed_casesintegerThe number of new confirmed cases compared to the previous date.
new_testsintegerThe number of new tests compared to the previous date.
new_confirmed_cases_seven_day_totalintegerThe total number of new confirmed cases in the previous seven days.
new_tests_seven_day_totalintegerThe total number of new tests in the previous seven days.
positive_test_rate_seven_day_percentfloatThe positive test rate over the past seven days, calculated by dividing the number of new confirmed cases over that time into the number of new tests.

cdph-variants.csv

The share of cases each month attributed each month to variants tracked by the California Department of Public Health.

fieldtypedescription
datedateThe month the data describe in ISO 8601 format.
alphafloatThe percentage of new cases attributed to the Alpha variant
gammafloatThe percentage of new cases attributed to the Gamma variant
epsilonfloatThe percentage of new cases attributed to the Epsilon variant
iotafloatThe percentage of new cases attributed to the Iota variant
deltafloatThe percentage of new cases attributed to the Delta variant
otherfloatThe percentage of new cases attributed to other variants

latimes-agency-totals.csv

The total cases and deaths logged by local public health agencies each day. Each row contains the cumulative totals reported by a single agency as of that date. This file stopped updating in September 2021 when The Times switched its tracker to use case and death counts consolidated by the state's Department of Public Health. Those figures can be found elsewhere in this repository.

Most counties have only one agency except for Alameda and Los Angeles counties, where some cities run independent health departments. In Alameda County, the city of Berkeley is managed independently. In Los Angeles County, Pasadena and Long Beach are managed independently. These cities' totals are broken out into separate rows. In order to calculate county-level totals, you must aggregate them together using the county field.

fieldtypedescription
agencystringThe name of the county or city public health agency that provided the data. Guaranteed to be unique when combined with the date field.
countystringThe name of the county where the agency is based.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
datedateThe date when the data were retrieved in ISO 8601 format.
confirmed_casesintegerThe cumulative number of confirmed coronavirus cases as of this date.
deathsintegerThe cumulative number of deaths attributed to coronavirus as of this date.
did_not_updatebooleanIndicates if the agency did not provide an update on this date. If this is true and the case and death totals are unchanged from the previous day, this means they were holdovers. Use this flag omit these records when desired.

latimes-county-totals.csv

The county-level totals of cases and deaths logged by local public health agencies each day. This is a derived table. Each row contains the aggregation of all local agency reports in that county logged by Los Angeles Times reporters and editors in latimes-agency-totals.csv. This file stopped updating in September 2021 when The Times switched its tracker to use case and death counts consolidated by the state's Department of Public Health. Those figures can be found elsewhere in this repository.

It comes with all of the same caveats as its source. It is included here as a convenience.

fieldtypedescription
countystringThe name of the county where the agency is based.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
datedateThe date when the data were retrieved in ISO 8601 format.
confirmed_casesintegerThe cumulative number of confirmed coronavirus case at that time.
deathsintegerThe cumulative number of deaths at that time.
new_confirmed_casesintegerThe net change in confirmed cases over the previous date.
new_deathsintegerThe net change in deaths over the previous date.

latimes-state-totals.csv

The statewide total of cases and deaths logged by local public health agencies each day. This is a derived table. Each row contains the aggregation of all local agency reports logged by Los Angeles Times reporters and editors in latimes-agency-totals.csv. This file stopped updating in September 2021 when The Times switched its tracker to use case and death counts consolidated by the state's Department of Public Health. Those figures can be found elsewhere in this repository.

It comes with all of the same caveats as its source. It is included here as a convenience.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
confirmed_casesintegerThe cumulative number of confirmed coronavirus case at that time.
deathsintegerThe cumulative number of deaths at that time.
new_confirmed_casesintegerThe net change in confirmed cases over the previous date.
new_deathsintegerThe net change in deaths over the previous date.

latimes-place-totals.csv

Most counties break out the location of cases within their service area. The Times is gathering and consolidating these lists. Each row contains cumulative case totals reported in that area as of that date. Some counties currently do not report cases by locality.

Different counties provide different geography types. Some provide data by region, some by Census designation, some by ZIP Code. The locations provided by Los Angeles County correspond to the public health department's official "Countywide Statistical Areas". Locations can be mapped after being joined to the shapes in latimes-places-polygons.geojson using the id column.

Be aware that some counties have shifted the place names used over time.

In some circumstances the true total of cases is obscured. Los Angeles and Orange counties decline to provide the precise number of cases in areas with low populations and instead provide a potential range. The lowest number in the range is entered into the record in the confirmed_cases field and an accompanying note includes the set of possible values.

fieldtypedescription
idstringThe unique identifier of the city, neighborhood or other area.
namestringThe name of the city, neighborhood or other area.
datedateThe date when the data were retrieved in ISO 8601 format.
countystringThe name of the county where the city is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
confirmed_casesintegerThe cumulative number of confirmed coronavirus case at that time.
notestringIn cases where the confirmed_cases are obscured, this explains the range of possible values.
populationintegerThe number of residents in the area. Not available for all places.

latimes-county-recovery-estimates.csv

The estimated number of recovered and active cases by county each day.

The number is calculated by subtracting active case, deaths and currently hospitalized patients from the total case count. Active cases are estimated as the number of new cases over the last 14 days, which is based on the amount of time the CDC says most adults remain infectious with COVID-19. The Times consulted biostatisticians at UCLA and UCSF to develop the approach. Some health agencies use the same method.

The result matches closely in areas with officially reported counts. One limitation is that there may be some overlap among active and hospitilized cases, leading to an underestimate in the number of recovered patients.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
countystringThe name of the county where the agency is based.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
recoveries_estimatedintegerThe cumulative number of estimated recovered coronavirus cases as of this date.
active_casesintegerThe current number of presumed active cases, or newly reported cases in the last 14 days, as of this date.

latimes-state-recovery-estimates.csv

The estimated number of recovered and active cases statewide each day.

The number is calculated by subtracting active case, deaths and currently hospitalized patients from the total case count. Active cases are estimated as the number of new cases over the last 14 days, which is based on the amount of time the CDC says most adults remain infectious with COVID-19. The Times consulted biostatisticians at UCLA and UCSF to develop the approach. Some health agencies use the same method.

The result matches closely in areas with officially reported counts. One limitation is that there may be some overlap among active and hospitilized cases, leading to an underestimate in the number of recovered patients.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
recoveries_estimatedintegerThe cumulative number of estimated recovered coronavirus cases as of this date.
active_casesintegerThe current number of presumed active cases, or newly reported cases in the last 14 days, as of this date.

Vaccinations

cdc-vaccination-state-totals.csv

State-level vaccination totals derived from the dashboard published by the U.S. Centers for Disease Control and Prevention.

fieldtypedescription
datedateThe date when the data were collected in ISO 8601 format.
statestringThe name of the state.
populationintegerThe number of people who live in the state.
doses_distributedintegerThe total number of doses sent to the state as of that date.
doses_administeredintegerThe total number of shots given out in the state as of that date.
doses_administered_percentfloatThe percentage of distributed doses that have been administered as of that date.
administered_dose1integerThe number of first doses administered in the state of that date.
administered_dose1_percentfloatThe percentage of people in the state who have received at least one dose as of that date.
administered_dose2integerThe number of second doses administered in the state of that date.
administered_dose2_percentfloatThe percentage of people in the state who are fully vaccinated as of that date.

cdph-vaccination-county-totals.csv

California's Department of Public Health releases county-level vaccination totals via a Tableau dashboard. Our team extracts and logs the data each day.

fieldtypedescription
datedateThe date for which data were reported in ISO 8601 format.
countystringThe name of the county.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
populationintegerThe number of people who live in the county.
doses_administeredintegerThe total number of doses given as of this date.
new_doses_administeredintegerThe number of new doses compared to the previous date.
pfizer_dosesintegerThe total number of Pfizer doses given as of this date.
new_pfizer_dosesintegerThe number of new Pfizer doses compared to the previous date.
moderna_dosesintegerThe total number of Moderna doses given as of this date.
new_moderna_dosesintegerThe number of new Moderna doses compared to the previous date.
jj_dosesintegerThe total number of Johnson & Johnson doses given as of this date.
new_jj_dosesintegerThe number of new Johnson & Johnson doses compared to the previous date.
partially_vaccinatedintegerThe total number of partially vaccinated people as of this date.
new_partially_vaccinatedintegerThe number of new partially vaccinated people compared to the previous date.
at_least_one_doseintegerThe total number of people who have received at least one dose any vaccine given as of this date.
new_at_least_one_doseintegerThe number of new people who have received at least one dose any vaccine compared to the previous date.
fully_vaccinatedintegerThe total number of fully vaccinated people as of this date.
new_fully_vaccinatedintegerThe number of new fully vaccinated people compared to the previous date.
partially_vaccinated_percentfloatThe percentage of people who were partially vaccinated as of this date.
at_least_one_dose_percentfloatThe percentage of people who received at least one dose any vaccine as of this date.
fully_vaccinated_percentfloatThe percentage of people who were fully vaccinated as of this date.

cdph-vaccination-state-totals.csv

California's Department of Public Health is releasing state-level vaccination totals. Our team extracts and logs the data each day.

fieldtypedescription
datedateThe date for which data were reported in ISO 8601 format.
doses_administeredintegerThe total number of doses given as of this date.
new_doses_administeredintegerThe number of new doses compared to the previous date.
pfizer_dosesintegerThe total number of Pfizer doses given as of this date.
new_pfizer_dosesintegerThe number of new Pfizer doses compared to the previous date.
moderna_dosesintegerThe total number of Moderna doses given as of this date.
new_moderna_dosesintegerThe number of new Moderna doses compared to the previous date.
jj_dosesintegerThe total number of Johnson & Johnson doses given as of this date.
new_jj_dosesintegerThe number of new Johnson & Johnson doses compared to the previous date.
partially_vaccinatedintegerThe total number of partially vaccinated people as of this date.
new_partially_vaccinatedintegerThe number of new partially vaccinated people compared to the previous date.
at_least_one_doseintegerThe total number of people who have received at least one dose any vaccine given as of this date.
new_at_least_one_doseintegerThe number of new people who have received at least one dose any vaccine compared to the previous date.
fully_vaccinatedintegerThe total number of fully vaccinated people as of this date.
new_fully_vaccinatedintegerThe number of new fully vaccinated people compared to the previous date.
partially_vaccinated_percentfloatThe percentage of people who were partially vaccinated as of this date.
at_least_one_dose_percentfloatThe percentage of people who received at least one dose any vaccine as of this date.
fully_vaccinated_percentfloatThe percentage of people who were fully vaccinated as of this date.

cdph-vaccination-zipcode-totals.csv

California's Department of Public Health is releasing zipcode-level vaccination totals. Our team extracts and logs the data each day. Population estimates from the U.S. Census Bureau, gathered by The Times, are used to calculate the percentage of the total population that is vaccinated.

fieldtypedescription
datedateThe date for which data were reported in ISO 8601 format.
idstringThe unique identifer of the ZIP Code.
countystringThe name of the county.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
populationintegerThe number of people who live in the county.
partially_vaccinatedintegerThe total number of partially vaccinated people as of this date.
at_least_one_doseintegerThe total number of people who have received at least one dose any vaccine given as of this date.
fully_vaccinatedintegerThe total number of fully vaccinated people as of this date.
partially_vaccinated_percentfloatThe percentage of people who were partially vaccinated as of this date.
at_least_one_dose_percentfloatThe percentage of people who received at least one dose any vaccine as of this date.
fully_vaccinated_percentfloatThe percentage of people who were fully vaccinated as of this date.

Demographics

cdph-age.csv

Statewide demographic data tallying totals by age for both cases and deaths. Provided by the California Department of Public Health.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
agestringThe age bracket being tallied
confirmed_cases_totalintegerThe cumulative number of confirmed coronavirus case amoung this age bracket at that time.
confirmed_cases_percentfloatThe case totals percentage of the total in this age bracket
deaths_totalintegerThe cumulative number of deaths case amoung this age bracket at that time.
deaths_percentfloatThe death totals percentage of the total in this age bracket.

cdph-population-race-ethnicity.csv

The breakdown of the population by race and ethnicity statewide and in each of the 58 counties, as provided by the California Department of Public Health.

fieldtypedescription
countystringThe name of the county. The state of California also included as a row.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
aianfloatThe percentage of people in the area who are American Indian or Alaska Native
asianfloatThe percentage of people in the area who are Asian
blackfloatThe percentage of people in the area who are Black
latinofloatThe percentage of people in the area who are Latino
multiracefloatThe percentage of people in the area who are multirace
nhpifloatThe percentage of people in the area who are Native Hawaiian or Pacific Islander
otherfloatThe percentage of people in the area who are of another race
unknownfloatThe percentage of people in the area who are of unknown race
whitefloatThe percentage of people in the area who are white

cdph-race-ethnicity.csv

Statewide demographic data tallying race totals by age for both cases and deaths. Provided by the California Department of Public Health.

The original race categories published by the state have been grouped and aggregated to match the five race categories traditionally published by the Los Angeles Times.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
racestringThe race being tallied.
agestringThe age bracket being tallied
confirmed_cases_totalintegerThe cumulative number of confirmed coronavirus case amoung this race and age at that time.
confirmed_cases_percentfloatThe case totals percentage of the total in this age bracket
deaths_totalintegerThe cumulative number of deaths case amoung this race and age at that time.
deaths_percentfloatThe death totals percentage of the total in this age bracket.
population_percentfloatThe race's percentage of the overall state population in this age bracket.

cdph-vaccination-county-by-age.csv

California's Department of Public Health releases county-level vaccination totals segemented by age.

fieldtypedescription
countystringThe name of the county.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
datedateThe date for which data were reported in ISO 8601 format.
age_groupstringThe age group being tallied.
partially_vaccinatedintegerThe total number of partially vaccinated people as of this date.
at_least_one_doseintegerThe total number of people who have received at least one dose any vaccine given as of this date.
fully_vaccinatedintegerThe total number of fully vaccinated people as of this date.
population_totalintegerThe number of people who live in the county.
population_12_and_upintegerThe number of people 12 years or older who live in the county.
partially_vaccinated_percentfloatThe percentage of people who were partially vaccinated as of this date.
partially_vaccinated_percent_12_and_upfloatThe percentage of people 12 and up who were partially vaccinated as of this date.
at_least_one_dose_percentfloatThe percentage of people who received at least one dose any vaccine as of this date.
at_least_one_dose_percent_12_and_upfloatThe percentage of people 12 and up who received at least one dose any vaccine as of this date.
fully_vaccinated_percentfloatThe percentage of people who were fully vaccinated as of this date.
fully_vaccinated_percent_12_and_upfloatThe percentage of people 12 and up who were fully vaccinated as of this date.

cdph-vaccination-county-by-race-ethnicity.csv

California's Department of Public Health releases county-level vaccination totals segemented by race and ethnicity. The racial groups provided by the state have been simplified to the categories commonly used by Los Angeles Times.

fieldtypedescription
countystringThe name of the county.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
datedateThe date for which data were reported in ISO 8601 format.
race_ethnicitystringThe race group being tallied.
partially_vaccinatedintegerThe total number of partially vaccinated people as of this date.
at_least_one_doseintegerThe total number of people who have received at least one dose any vaccine given as of this date.
fully_vaccinatedintegerThe total number of fully vaccinated people as of this date.
population_totalintegerThe number of people who live in the county.
population_12_and_upintegerThe number of people 12 years or older who live in the county.
partially_vaccinated_percentfloatThe percentage of people who were partially vaccinated as of this date.
partially_vaccinated_percent_12_and_upfloatThe percentage of people 12 and up who were partially vaccinated as of this date.
at_least_one_dose_percentfloatThe percentage of people who received at least one dose any vaccine as of this date.
at_least_one_dose_percent_12_and_upfloatThe percentage of people 12 and up who received at least one dose any vaccine as of this date.
fully_vaccinated_percentfloatThe percentage of people who were fully vaccinated as of this date.
fully_vaccinated_percent_12_and_upfloatThe percentage of people 12 and up who were fully vaccinated as of this date.

cdph-vaccination-state-by-age.csv

California's Department of Public Health releases county-level vaccination totals segemented by age.

fieldtypedescription
datedateThe date for which data were reported in ISO 8601 format.
age_groupstringThe age group being tallied.
partially_vaccinatedintegerThe total number of partially vaccinated people as of this date.
at_least_one_doseintegerThe total number of people who have received at least one dose any vaccine given as of this date.
fully_vaccinatedintegerThe total number of fully vaccinated people as of this date.
population_totalintegerThe number of people who live in the county.
population_12_and_upintegerThe number of people 12 years or older who live in the county.
partially_vaccinated_percentfloatThe percentage of people who were partially vaccinated as of this date.
partially_vaccinated_percent_12_and_upfloatThe percentage of people 12 and up who were partially vaccinated as of this date.
at_least_one_dose_percentfloatThe percentage of people who received at least one dose any vaccine as of this date.
at_least_one_dose_percent_12_and_upfloatThe percentage of people 12 and up who received at least one dose any vaccine as of this date.
fully_vaccinated_percentfloatThe percentage of people who were fully vaccinated as of this date.
fully_vaccinated_percent_12_and_upfloatThe percentage of people 12 and up who were fully vaccinated as of this date.

cdph-vaccination-state-by-race-ethnicity.csv

California's Department of Public Health releases county-level vaccination totals segemented by race and ethnicity. The racial groups provided by the state have been simplified to the categories commonly used by Los Angeles Times.

fieldtypedescription
datedateThe date for which data were reported in ISO 8601 format.
race_ethnicitystringThe race group being tallied.
partially_vaccinatedintegerThe total number of partially vaccinated people as of this date.
at_least_one_doseintegerThe total number of people who have received at least one dose any vaccine given as of this date.
fully_vaccinatedintegerThe total number of fully vaccinated people as of this date.
population_totalintegerThe number of people who live in the county.
population_12_and_upintegerThe number of people 12 years or older who live in the county.
partially_vaccinated_percentfloatThe percentage of people who were partially vaccinated as of this date.
partially_vaccinated_percent_12_and_upfloatThe percentage of people 12 and up who were partially vaccinated as of this date.
at_least_one_dose_percentfloatThe percentage of people who received at least one dose any vaccine as of this date.
at_least_one_dose_percent_12_and_upfloatThe percentage of people 12 and up who received at least one dose any vaccine as of this date.
fully_vaccinated_percentfloatThe percentage of people who were fully vaccinated as of this date.
fully_vaccinated_percent_12_and_upfloatThe percentage of people 12 and up who were fully vaccinated as of this date.

Hospitals

cdph-hospital-patient-county-totals.csv

California's Department of Public Health is releasing county-level hospitalization totals.

fieldtypedescription
datedateThe date for which hospital data were reported in ISO 8601 format.
countystringThe name of the county.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
positive_patientsintegerThe current number confirmed coronavirus cases in hospitals on this date.
suspected_patientsintegerThe current number suspected coronavirus cases in hospitals on this date.
icu_positive_patientsintegerThe current number confirmed coronavirus cases in intensive-care units on this date.
icu_suspected_patientsintegerThe current number suspected coronavirus cases in intensive-care units on this date.
icu_available_bedsintegerThe current number open and avilable intensive-care beds on this date.

cdph-hospital-patient-state-totals.csv

California's Department of Public Health is releasing county-level hospitalization totals. The file aggregates them statewide.

fieldtypedescription
datedateThe date for which hospital data were reported in ISO 8601 format.
positive_patientsintegerThe current number confirmed coronavirus cases in hospitals on this date.
suspected_patientsintegerThe current number suspected coronavirus cases in hospitals on this date.
icu_positive_patientsintegerThe current number confirmed coronavirus cases in intensive-care units on this date.
icu_suspected_patientsintegerThe current number suspected coronavirus cases in intensive-care units on this date.
icu_available_bedsintegerThe current number open and avilable intensive-care beds on this date.

cdph-regional-stay-home-metrics.csv

In December 2020, the state introduced a new system for issuing stay home orders. The state's 58 counties were grouped into six regions and judged based on the percentage of available ICU beds. When the percentage available beds dropped below 15%, a stay home order restricting businesses and movement would be issued.

This file records the metrics released for each region by day.

fieldtypedescription
datedateThe date when the data were collected in ISO 8601 format.
regionstringThe name of the region.
icu_capacity_percentfloatThe percentage of ICU beds in the region that were available on that date
stay_home_orderstringAn indicator of whether or not a stay home order was in effect for the region on that date. The range of values is pending, yes and no.

hhs-hospital-patient-totals.csv

The Department of Health and Human Services releases a weekly update on the number of COVID-19 patients in hospitals. This file contains the key metrics for facilities in California.

fieldtypedescription
hospitalstringThe name of the hospital
ccnstringThe unique indentifier of the hospital.
weekdateThe week for which hospital data were reported in ISO 8601 format.
countystringThe county where the hospitals is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
regionstringThe region of the state where the hospital is located.
adult_covid_patients_totalintegerThe daily average of adult COVID-19 patients at the hospital over the past seven days.
pediatric_covid_patients_totalintegerThe daily average of pediatric COVID-19 patients at the hospital over the past seven days.
covid_patients_totalintegerThe daily average of total COVID-19 patients at the hospital over the past seven days.
occupied_beds_percentintegerThe daily average of occupied beds over the past seven days, measured as a percentage of the hospital's total.
patients_with_covid_percentintegerThe daily average of beds occupied by COVID-19 patients over the past seven days, measured as a percentage of the hospital's total.

hhs-hospital-icu-totals.csv

The Department of Health and Human Services releases a weekly update on the number of COVID-19 patients in intensive-care units. This file contains the key metrics for facilities in California.

fieldtypedescription
hospitalstringThe name of the hospital
ccnstringThe unique indentifier of the hospital.
weekdateThe week for which hospital data were reported in ISO 8601 format.
countystringThe county where the hospitals is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
regionstringThe region of the state where the hospital is located.
covid_icu_patients_totalintegerThe daily average of COVID-19 patients in the adult ICU at the hospital over the past seven days.
available_adult_icu_beds_totalintegerThe daily average of available adult ICU beds at the hospital over the past seven days.
occupied_adult_icu_beds_totalintegerThe daily average of occupied adult ICU beds at the hospital over the past seven days.
staffed_adult_icu_beds_totalintegerThe daily average of staffed adult ICU beds at the hospital over the past seven days.
occupied_adult_icu_beds_percentintegerThe daily average of occupied adult ICU beds over the past seven days, measured as a percentage of the hospital's total.
icu_patients_with_covid_percentintegerThe daily average of of adult ICU patients with COVID-19 over the past seven days, measured as a percentage of the hospital's total.

Nursing homes

cdph-adult-and-senior-care-facilities.csv

California's Department of Public Health is listing the residential care facilities for the elderly and adult residential facilities across the state with COVID-19 outbreaks.

These are also sometimes known as assisted-living facilities. In some circumstances the true total of cases is obscured. The lowest number in the range is entered into the record in the staff or patients field and an accompanying note field includes the set of possible values.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
namestringThe name of the nursing home.
countystringThe name of the county where the city is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
staff_confirmed_casesintegerThe cumulative number of confirmed coronavirus case amoung staff at that time.
patients_confirmed_casesintegerThe cumulative number of confirmed coronavirus case amoung patients at that time.
staff_confirmed_cases_notestringIn cases where the staff_confirmed_cases are obscured, this explains the range of possible values.
patients_confirmed_cases_notestringIn cases where the patients_confirmed_cases are obscured, this explains the range of possible values.
staff_deathsintegerThe cumulative number of deaths amoung staff at that time.
patients_deathsintegerThe cumulative number of deaths amoung patients at that time.
staff_deaths_notestringIn cases where the staff_deaths are obscured, this explains the range of possible values.
patients_deaths_notestringIn cases where the patients_deaths are obscured, this explains the range of possible values.

cdph-adult-and-senior-care-totals.csv

California's Department of Social Services is releasing totals tracking the cumulative number of cases and deaths at the state's residential care facilities for the elderly and adult residential facilities. The source documents are available in the pdf/adult-and-senior-care/ directory of this repository.

These are also sometimes known as assisted-living facilities. Counts for staff and patients are combined in this dataset into a single total.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
confirmed_casesintegerThe cumulative number of confirmed coronavirus case amoung staff and patients at that time.
deathsintegerThe cumulative number of deaths case amoung staff and patients at that time.
active_casesintegerThe number of active coronavirus case at that time.
source_urlstringThe URL to the state data release.

cdph-skilled-nursing-facilities.csv

California's Department of Social Services is listing the skilled-nursing facilities across the state with COVID-19 outbreaks. The source documents are available in the pdf/adult-and-senior-care/ directory of this repository.

In some circumstances the true total of cases is obscured. The lowest number in the range is entered into the record in the staff or patients field and an accompanying note field includes the set of possible values.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
idstringThe facility's unique identifier with the state.
namestringThe name of the skilled-nursing facility.
countystringThe name of the county where the city is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
staff_confirmed_casesintegerThe current number of confirmed coronavirus case amoung staff at that time.
patients_confirmed_casesintegerThe current number of confirmed coronavirus case amoung patients at that time.
staff_confirmed_cases_notestringIn cases where the staff_confirmed_cases are obscured, this explains the range of possible values.
patients_confirmed_cases_notestringIn cases where the patients_confirmed_cases are obscured, this explains the range of possible values.
staff_deathsintegerThe cumulative number of deaths case amoung staff at that time.
patients_deathsintegerThe cumulative number of deaths case amoung patients at that time.
staff_deaths_notestringIn cases where the staff_deaths are obscured, this explains the range of possible values.
patients_deaths_notestringIn cases where the patients_deaths are obscured, this explains the range of possible values.

cdph-skilled-nursing-totals.csv

California's Department of Public Health is releasing totals tracking the cumulative number of cases and deaths at the state's skilled nursing facilities.

In some circumstances the true total of cases is obscured. The lowest number in the range is entered into the record in the staff or patients field and an accompanying note field includes the set of possible values.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
staff_active_casesintegerThe number of active coronavirus case among staff at that time.
patients_active_casesintegerThe number of active coronavirus case amoung patients at that time.
staff_confirmed_casesintegerThe cumulative number of confirmed coronavirus case among staff at that time.
patients_confirmed_casesintegerThe cumulative number of confirmed coronavirus case among patients at that time.
staff_deathsintegerThe cumulative number of deaths case among staff at that time.
patients_deathsintegerThe cumulative number of deaths case among patients at that time.
staff_deaths_notestringIn cases where the staff_deaths are obscured, this explains the range of possible values.
source_urlstringThe URL to the state data release.

cdph-nursing-home-county-totals.csv

The total number of cases and deaths in skilled-nursing facilities, residential care facilities for the elderly and adult residential facilities aggregated by county.

These numbers are calculated by The Times using the facilities lists above. The state chooses not to provide precise numbers at facilities with fewer than 10 cases. When totaling by county, The Times substitutes the minimum value of one. The result is that the tallies are likely an undercount and should be considered the minimum possible value.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
countystringThe name of the county where the city is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
minimum_staff_confirmed_casesintegerThe minimum number of cumulative confirmed coronavirus case amoung staff at that time.
minimum_patients_confirmed_casesintegerThe minimum number of cumulative confirmed coronavirus case amoung patients at that time.
minimum_staff_deathsintegerThe minimum number of cumulative deaths amoung staff at that time.
minimum_patients_deathsintegerThe minimum number of cumulative deaths amoung patients at that time.

Prisons and jails

cdcr-prison-totals.csv

The cases, resolutions and deaths among inmates at the individual prison facilities operated by the California Department of Corrections and Rehabilitation.

The data is currently limited to July 22, 2020, forward.

fieldtypedescription
datedateThe date when the data were collected in ISO 8601 format.
codestringThe unique identifier of the prison institution.
namestringThe name of the prison institution.
citystringThe city where the prison institution is located.
countystringThe county where the prison institution is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
zipcodestringThe ZIP Code where the agency is located.
xfloatThe longitude of the area's centroid.
yfloatThe latitude of the area's centroid.
confirmed_casesintegerThe cumulative number of confirmed coronavirus case at that time.
new_confirmed_casesintegerThe net change in confirmed cases over the previous date.
deathsintegerThe cumulative number of deaths at that time.
new_deathsintegerThe net change in deaths over the previous date.

cdcr-state-totals.csv

The total number of cases amoung inmates at prisons run by the California Department of Corrections and Rehabiliation.

fieldtypedescription
datedateThe date when the data were collected in ISO 8601 format.
confirmed_casesintegerThe cumulative number of confirmed coronavirus case at that time.
new_confirmed_casesintegerThe net change in confirmed cases over the previous date.

Schools

charter-schools-reopening.csv

Number of students with an option to return to individual charter schools calculated from combination of data from California Safe Schools For All and California Department of Education. This file stopped updating in June 2021.

fieldtypedescription
cdscodestringA 14-digit code unique to the charter school. Assigned by California department of Education
districtstringName of school district the charter schools is part of.
schoolstringName of the charter school.
enr_totalintegerTotal students enrolled
elem_enrintegerTotal students enrolled in grades K-5. Subset of enr_total.
middle_enrintegerTotal students enrolled in grades 6-8. Subset of enr_total.
high_enrintegerTotal students enrolled in grades 9-12. Subset of enr_total.
elem_in_schoolintegerStudents in grades K-5 that have the option to participate in an in-person or hybrid learning.
middle_in_schoolintegerStudents in grades 6-8 grades that have the option to participate in an in-person or hybrid learning.
high_in_schoolintegerStudents in grades 9-12 grades that have the option to participate in an in-person or hybrid learning.
total_in_school integerSum of elem_in_school,middle_in_school and high_in_school.
reopening_planstringLink to school's reopening plan.
operational_status_elemstringOperational status as of update_date.
operational_status_middlestringOperational status as of update_date.
operational_status_highstringOperational status as of update_date.
elem_reopening_datedatePlanned reopening date as of update date.
middle_reopening_datedatePlanned reopening date as of update date.
high_reopening_datedatePlanned reopening date as of update date.
near_term_opening_datedateEarliest planned reopening date for the school as of update date.
update_datedateThe date when the charter school submitted status report to the state.

school-districts-reopening.csv

Number of students with an option to return to school districts calculated from combination of data from California Safe Schools For All and California Department of Education. This file stopped updating in June 2021.

fieldtypedescription
districtstringName of public school district.
enr_totalintegerTotal students enrolled in the district.
elem_enrintegerTotal students enrolled in grades K-5. Subset of enr_total.
middle_enrintegerTotal students enrolled in grades 6-8. Subset of enr_total.
high_enrintegerTotal students enrolled in grades 9-12. Subset of enr_total.
elem_in_schoolintegerStudents in grades K-5 that have the option to participate in an in-person or hybrid learning.
middle_in_schoolintegerStudents in grades 6-8 grades that have the option to participate in an in-person or hybrid learning.
high_in_schoolintegerStudents in grades 9-12 grades that have the option to participate in an in-person or hybrid learning.
total_in_school integerSum of elem_in_school,middle_in_school and high_in_school.
reopening_planstringLink to district's reopening plan.
operational_status_elemstringOperational status as of update_date for the district's elementary schools.
operational_status_middlestringOperational status as of update_date for the district's middle schools.
operational_status_highstringOperational status as of update_date for the district's high schools.
elem_reopening_datedatePlanned reopening date for the district's elementary schools as of update date.
middle_reopening_datedatePlanned reopening date for the district's middle schools as of update date.
high_reopening_datedatePlanned reopening date for the district's high schools as of update date.
near_term_opening_datedateEarliest planned reopening date for the district as of update date.
update_datedateThe date when the district submitted status report to the state.

lausd-cases.csv

The number of coronavirus cases detected at L.A. Unified schools. Updates daily via a scraper that pulls from the district's dashboard.

fieldtypedescription
schoolstringThe name of the school.
statusstringWhether the school is open or closed.
staff_studentfloatThe current number of active cases among staff and students.
transmissionfloatThe number of school-linked cases.
staff_student_ratefloatThe seven-day average of active cases per 100,000 students in this school's community of schools.
community_ratefloatThe seven-day average of active cases per 100,000 residents in the school's surrounding community.
lac_ratefloatThe seven-day average of active cases per 100,000 residents in Los Angeles County.
community_schoolsstringThe name of the community of schools that this school belongs to.
communitystringThe name of the community where the school is located within.
datedateThe last updated date listed on the district's dashboard.
timestringThe last updated time listed on the district's dashboard.

Maps

cdph-hpi-zipcodes.csv

California's Department of Public Health has assigned each California ZIP Code a community health score by combining a variety of economic and social indicators. It is known as the Healthy Places Index. The quartile that each ZIP Code falls within was released in response to a request by The Times.

fieldtypedescription
idstringThe unique identifer of the ZIP Code.
hpi_quartileintegerThe ranked quartile that contains the ZIP Code’s Healthy Places Index score. One is the lowest. Four is the highest.
countystringThe name of the county.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
citystringThe city the ZIP Code falls within

latimes-place-polygons.geojson

A map of sub-county areas where cases are tracked.

Different counties provide different geography types. Some provide data by region, some by Census designation, some by ZIP Code. The locations provided by Los Angeles County correspond to the public health department's official "Countywide Statistical Areas". Locations can be analyzed after being joined to the case counts in the latimes-places-totals.csv using the id column.

This file is a combination of dozens of different data files collected by Times reporters. Some shapes from county officials who maintain their own maps, others were scraped from county dashboards. In some cases, Census maps are used.

In some cases, the precise area being tracked by local officials is unclear. What you will find here is the best effort of Times reporters to represent what's been released. If you see any errors, please contact ben.welsh@latimes.com.

fieldtypedescription
idstringThe unique identifier of the city, neighborhood or other area.
namestringThe name of the city, neighborhood or other area.
countystringThe name of the county where the city is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
centroid_xfloatThe longitude of the place.
centroid_yfloatThe latitude of the place.
populationintegerThe number of residents in the area. Not available for all places.

latimes-zipcode-polygons.geojson

The ZIP Code Tabulation Areas (ZCTAs) used by The Times to map ZIP Code vaccination totals provided by the California Department of Public Health. The map file was acquired from the U.S. Census Bureau. It is limited to areas where vaccination data are available.

fieldtypedescription
idstringThe unique identifier of the city, neighborhood or other area.
countystringThe name of the county where the city is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.

los-angeles-countywide-statistical-areas.json

A GeoJSON file mapping out statistical tabulation areas created by the Los Angeles County Department of Public Health. Place-level data released by Los Angeles County correspond to these areas. Acquired via a California Public Records Act request.

fieldtypedescription
typestringThe type of area being mapped. Options are City andUnincorporated
citystringThe name of the area's municipal parent, if it has one.
communitystringThe name of the area.
labelbooleanA combination of the area's name and city. Creates a unique string.
centroid_xfloatThe longitude of the area's centroid.
centroid_yfloatThe latitude of the area's centroid.

Other

cdph-press-releases.csv

Totals published by the California Department of Public Health in its daily press releases. Each row contains all numbers included in that day's release.

This file includes cases and deaths, the age of victims, transmission types, tests and hospitalizations. The state has stopped supplying some fields and began supplying some others over time. Deprecated fields have been maintained in this file and are noted below.

The Times stopped entering data in August 2021. Some dates are missing because the state did not publish a press release for that day.

fieldtypedescription
datedateThe date when the data were retrieved in ISO 8601 format.
confirmed_casesintegerThe cumulative number of confirmed coronavirus case at that time.
deathsintegerThe cumulative number of deaths at that time.
travelintegerThe number of cases acquired while traveling. The state stopped publishing it on March 24.
person_to_personintegerThe number of cases acquired from close contacts and family members. The state stopped publishing it on March 24.
community_spreadintegerThe number of cases acquired from community spread. The state stopped publishing it on March 29.
under_investigationintegerThe number of cases acquired from an unknown source. The state stopped publishing it on March 24.
other_causesintegerThe number of cases acquired from other sources. On March 24 the state began combining this figure with travel, person-to-person and under investigation cases. On March 29 the state stopped publishing it.
self_monitoringintegerThe number of people in a form of isolation monitored by the state. The state stopped publishing it on March 19.
age_0_to_17integerThe number of confirmed cases involving a person between 0 and 18 years old.
age_18_to_49integerThe number of confirmed cases involving a person between 18 and 49 years old.
age_50_to_64integerThe number of confirmed cases involving a person between 50 and 64 years old.
age_65_and_upintegerThe number of confirmed cases involving a person 65 of older.
age_18_to_64integerThe number of confirmed cases involving a person between 18 and 64 years old. The state stopped publishing it on March 23.
age_unknownintegerThe number of confirmed cases involving a person of unknown age.
gender_maleintegerThe number of confirmed cases involving a male.
gender_femaleintegerThe number of confirmed cases involving a female.
gender_unknownintegerThe number of confirmed cases involving a a person of unknown gender.
total_testsintegerThe total number of tests conducted.
received_testsintegerThe number of tests results received. The state stopped publishing this field in April 24.
pending_testsintegerThe number of tests resuts that are still pending. The state stopped publishing this field in April 24.
confirmed_hospitalizationsintegerThe total number of hospitalizations with a confirmed case of COVID-19.
confirmed_icuintegerThe number of ICU hospitalizations with a confirmed case of COVID-19.
suspected_hospitalizationsintegerThe total number of hospitalizations with a suspected case of COVID-19.
suspected_icuintegerThe number of ICU hospitalizations with a suspected case of COVID-19.
healthcare_worker_infectionsintegerThe total number of healthcare workers who have tested positive for COVID-19.
healthcare_worker_deathsintegerThe total number of healthcare workers who have died from COVID-19.
vaccine_doses_administeredintegerThe total number of vaccine doses given out.
vaccine_doses_distributedintegerThe total number of vaccine doses available in the state.
source_urlstringThe URL to the state press release.

cdph-reopening-metrics.csv

In August 2020, the state introduced a new framework for deciding when and how counties can reopen. Under the regime, each county is assigned to one of four tiers based on a set of metrics developed by state officials.

This file records the metrics released for each county by day. Definition of the benchmarks can be found on the state's website.

fieldtypedescription
datedateThe date when the data were collected in ISO 8601 format.
countystringThe name of the county.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
percapita_case_ratefloatThe number of new cases in a recent seven-day period — excluding cases at prisons and jails — adjusted for population and multiplied by 100,000.
adjusted_case_ratefloatThe percapita_case_rate adjusted to account for the volume of testing in the area. Not done for all counties.
positivity_ratefloatThe percentage of tests for the virus that come back positive in a recent seven-day period.
equity_metricfloatAn index measuring disparities in disadvantaged neighborhoods compared to the county overall. Many small counties are exempted. Added Oct. 6, 2020

cdph-reopening-tiers.csv

In August 2020, the state introduced a new framework for deciding when and how counties can reopen. Under the regime, each county is assigned to one of four tiers based on a set of metrics developed by state officials.

This file records the current tier of each county by day. The definition for each group can be found on the state's website.

fieldtypedescription
datedateThe date when the data were collected in ISO 8601 format.
countystringThe name of the county.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
tierintegerThe tier the county was classified in on this date. There are four possible values on an ordinal scale with one being the most restrictive and four the least restrictive.
                                                                         |

latimes-agency-websites.csv

The 61 local-health agency websites that the Los Angeles Times consults to conduct its survey.

fieldtypedescription
countystringThe name of the county where the city is located.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
agencystringThe name of the county or city public health agency.
urlstringThe location of the agency's website on the World Wide Web.

latimes-beach-closures-area-list.csv

The subcounty-level restrictions on beach access, compiled by the Los Angeles Times based on data released by the California Coastal Commission.

fieldtypedescription
countystringThe name of the county where the agency is based.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
areastringThe name of the sub-county area being tracked.
state_parkbooleanAn indicator if this area is a state park.
restrictionstringA description of the current level of restriction in this area.

latimes-beach-closures-county-list.csv

The county-level restrictions on beach access, compiled by the Los Angeles Times based on data released by the California Coastal Commission.

fieldtypedescription
countystringThe name of the county where the agency is based.
fipsstringThe FIPS code given to the county by the federal government. Can be used to merge with other data sources.
statusstringA Times classification of the current level of restriction in this county
restrictionstringA description of the current level of restriction in this county

latimes-project-roomkey-totals.csv

Los Angeles County officials have launched an unprecedented effort to shield 15,000 homeless people from the coronavirus by moving them into hotel rooms. The Times is tracking the latest data from the Los Angeles County Emergency Operations Center and the Los Angeles County Department of Public Health.

fieldtypedescription
datedateThe date on which data were reported in ISO 8601 format.
people_housedintegerThe current number of homeless people in Los Angeles County housed on this date.
leased_roomsintegerThe current number hotel rooms leased on this date.
rooms_ready_to_occupyintegerThe subset of leased rooms that were ready to occupy on this date.
rooms_occupiedintegerThe subset of ready rooms that were occupied on this date.
homeless_confirmed_casesintegerThe cumulative number of homeless people in Los Angeles County that had tested positive by this date.

Getting started

The data published here can be easily imported to any data analysis tool, ranging from a simple spreadsheet to a more sophisticated analysis framework. This repository has be pre-configured to work with the Python computer-programming language and a Jupyter computational notebook. You can install and run the code locally on your computer, or on the web with Binder.

Installing locally

Make a fork of this repository, clone it to your computer, then move into the directory.

cd california-coronavirus-data

Install the Python tools you need with pipenv.

pipenv install

Start the Jupyter Lab programming environment.

pipenv run jupyter lab

Check out the example notebook at notebooks/examples.ipynb.

Running online with Binder

Binder

Click on the Binder badge above and this repository will boot up inside the site's system for running Jupyter notebooks over the web. After a few minutes you should have an Jupyter Lab environment up and running.

How you can help

This survey is conducted by The Times' Data and Graphics Department. If you'd like to support its effort to keep California and the nation informed, the best thing you can do is buy a digital subscription and encourage others to do the same. The coronavirus pandemic has had a significant effect on the country's economy and the news industry is no exception. Without support from readers like you projects like this would not be possible.

Contact

To inquire about the data or about reuse, please contact Data and Graphics Editor Ben Welsh at ben.welsh@latimes.com