Skip to content

No data returned from nchs-mortality and can't use week as the time type #1904

Closed
@IDPHChicago

Description

@IDPHChicago

Actual Behavior:

When I query the data of any signal from data source nchs-mortality, it returns NoDataWarning. The time type is day (datetime.date()). The geo type is state. The geo value is il.
When I set the time type as week by using epiweek.Week(), it can't return the correct time and raise "AttributeError: 'Week' object has no attribute 'strftime'".

Expected behavior

I have the API key and would like to use covidcast.signal to download the data of Illinois from data source nchs-mortality. The signals are: deaths_covid_incidence_num, deaths_covid_incidence_prop, deaths_pneumonia_notflu_incidence_num, deaths_pneumonia_notflu_incidence_prop, deaths_pneumonia_or_flu_or_covid_incidence_num, deaths_pneumonia_or_flu_or_covid_incidence_prop.

Context

I can create the pandas dateframes by using covidcast.signal to download data from other data sources.

Metadata

Metadata

Assignees

Labels

data qualityMissing data, weird data, broken data

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions