act-now-coalition / covid-data-model

Data backend providing computed data for the graphs displayed at https://covidactnow.org
https://covidactnow.org/
MIT License
149 stars 57 forks source link

work-around for asdict error in build_dataset #1127

Closed TomGoBravo closed 3 years ago

TomGoBravo commented 3 years ago

Upgrading pandas introduced TypeError: asdict() should be called on dataclass instances as documented at https://github.com/pandas-dev/pandas/issues/41682

This PR is a work-around and maybe makes build_dataset slightly easier to read.