Skip to content

Enforce upstream data schema when creating polars dataframes from SODA data pulls #48

Description

@dylanhmorris

Longer term patch to replace the workaround in #45 (which should be merged in the mean time)

My preference here is to enforce a schema for each dataset when constructing the polars df (i.e. provide a schema kwarg to pl.from_dicts). I think we should get the schema from the dataset's own column metadata on data.cdc.gov (e.g. for NHSN hrd prelim: data.cdc.gov/api/views/mpgq-jmmr.json; see stackoverflow.com/questions/24745820/socrata-get-data-types-of-dataset-columns).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions